/* ═══════════════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════════════ */
:root {
  --bg: #f6f1eb;
  --bg-alt: #ede8df;
  --text: #2b2018;
  --text-muted: #7a6e60;
  --accent: #5f7a52;
  --accent-h: #4a6040;
  --warm: #b08060;
  --white: #fdfaf6;
  --border: #d9d2c8;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;

  --max-w: 1200px;
  --radius: 4px;
  --gap: 12px;
  --sec-pad: clamp(60px, 10vw, 110px);
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}
ul {
  list-style: none;
}

/* ═══════════════════════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--sec-pad) 0;
}
.section--alt {
  background: var(--bg-alt);
}

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition:
    background 0.35s,
    padding 0.35s,
    box-shadow 0.35s;
}
.navbar.scrolled {
  background: var(--white);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s;
}
.logo span {
  color: var(--accent);
}
.navbar.scrolled .logo {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(253, 250, 246, 0.85);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--white);
}
.navbar.scrolled .nav-links a {
  color: var(--text-muted);
}
.navbar.scrolled .nav-links a:hover {
  color: var(--text);
}

.lang-switch {
  display: flex;
  gap: 2px;
  align-items: center;
}
.lang-btn {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(253, 250, 246, 0.55);
  padding: 4px 8px;
  border-radius: 4px;
  transition:
    color 0.2s,
    background 0.2s;
}
.lang-btn:hover {
  color: var(--white);
}
.lang-btn.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}
.navbar.scrolled .lang-btn {
  color: var(--text-muted);
}
.navbar.scrolled .lang-btn:hover {
  color: var(--text);
}
.navbar.scrolled .lang-btn.active {
  color: var(--text);
  background: var(--bg-alt);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition:
    background 0.3s,
    transform 0.3s,
    opacity 0.3s;
}
.navbar.scrolled .hamburger span {
  background: var(--text);
}
.navbar.nav-open .hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.navbar.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}
.navbar.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 700px) {
  /* Większy obszar dotyku dla przycisków języka */
  .lang-btn {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(300px, 80vw);
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px 32px;
    transition: right 0.35s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  }
  .navbar.nav-open .nav-links {
    right: 0;
  }
  .nav-links a {
    font-size: 1.1rem;
    color: var(--text-muted);
  }
  .nav-links a:hover {
    color: var(--text);
  }
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 14, 8, 0.4) 0%,
    rgba(20, 14, 8, 0.58) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 0 24px;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(253, 250, 246, 0.7);
  margin-bottom: 18px;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: rgba(253, 250, 246, 0.65);
}
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(253, 250, 246, 0.55);
  width: 26px;
  z-index: 1;
  animation: bounce 2.2s ease-in-out infinite;
}
.scroll-hint svg {
  width: 100%;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(9px);
  }
}

/* ═══════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: center;
}
.about-photo {
  position: relative;
  display: flex;
  flex-direction: column;
}
.about-photo-img {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo-img::after {
  content: "";
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 58%;
  height: 58%;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  z-index: -1;
}
.photo-credit {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  font-style: italic;
  letter-spacing: 0.02em;
}
.about-text h2 {
  margin-bottom: 22px;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 16px;
}
.about-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.pill--ig {
  background: #fce4ec;
  color: #ad1457;
}
.pill--px {
  background: #e8f5e9;
  color: #2e7d32;
}
.px-badge {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
}

@media (max-width: 920px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo {
    max-width: 340px;
    margin: 0 auto;
  }
  .about-photo-img::after {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   PORTFOLIO / GALLERY
═══════════════════════════════════════════════════════ */

.gallery {
  columns: 3 220px;
  column-gap: var(--gap);
}
.gitem {
  break-inside: avoid;
  margin-bottom: var(--gap);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gitem.hidden {
  display: none;
}
.gitem img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.gitem:hover img {
  transform: scale(1.04);
}
.gitem-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 14px 12px;
  background: linear-gradient(to top, rgba(20, 14, 8, 0.72), transparent);
  color: var(--white);
  font-size: 0.8125rem;
  font-style: italic;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.gitem:hover .gitem-cap {
  opacity: 1;
  transform: translateY(0);
}

/* Podpisy zawsze widoczne na urządzeniach bez hover (telefon/tablet) */
@media (hover: none) {
  .gitem-cap {
    opacity: 1;
    transform: translateY(0);
  }
  .gitem:hover img {
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════
   SOCIAL CARDS
═══════════════════════════════════════════════════════ */
.social-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.scard {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.scard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.scard--ig:hover {
  border-color: #ad1457;
}
.scard--px:hover {
  border-color: var(--accent);
}

.scard-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scard-icon svg {
  width: 34px;
  height: 34px;
}
.scard--ig .scard-icon {
  color: #ad1457;
}
.px-logo {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 1;
}
.px-logo em {
  font-style: normal;
  font-size: 0.75em;
}

.scard-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scard-platform {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scard-handle {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
}
.scard-cta {
  font-size: 0.8125rem;
  color: var(--accent);
  margin-top: 6px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .social-cards {
    grid-template-columns: 1fr;
  }
  .scard {
    padding: 24px;
  }
}

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  margin-bottom: 20px;
}
.contact-info p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.0625rem;
}
.email-link {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.email-link:hover {
  color: var(--accent-h);
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: var(--text);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 0.8125rem;
  color: rgba(253, 250, 246, 0.4);
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-socials a {
  color: rgba(253, 250, 246, 0.45);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.footer-socials a:hover {
  color: var(--white);
}
.footer-socials svg {
  width: 18px;
  height: 18px;
}
.px-logo-sm {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ═══════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 8, 0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lb-content {
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lb-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
}
.lb-caption {
  color: rgba(253, 250, 246, 0.55);
  font-size: 0.875rem;
  font-style: italic;
}
.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(253, 250, 246, 0.65);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    color 0.2s,
    background 0.2s;
}
.lb-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.lb-close svg {
  width: 22px;
  height: 22px;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(253, 250, 246, 0.55);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    color 0.2s,
    background 0.2s;
}
.lb-nav:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.lb-nav svg {
  width: 28px;
  height: 28px;
}
.lb-prev {
  left: 16px;
}
.lb-next {
  right: 16px;
}

@media (max-width: 600px) {
  .lb-prev {
    left: 4px;
  }
  .lb-next {
    right: 4px;
  }
}
