/* styles.css — kompletna wersja z lightboxem i hamburgerem */

/* -------------------------------- ZMIENNE -------------------------------- */
:root {
  --bg: #0f1115;
  --surface: #151823;
  --muted-surface: #1b2030;
  --text: #e6e8ef;
  --text-muted: #b5bdd3;
  --primary: #589399; /* Twój kolor przycisków */
  --ring: rgb(255 255 255 / 8%);
  --radius: 16px;
  --shadow: 0 10px 30px rgb(0 0 0 / 35%);
}

/* -------------------------------- RESETY -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans";
  background: radial-gradient(1200px 800px at 80% -10%, rgb(106 166 255 / 12%), transparent),
              radial-gradient(800px 600px at 10% 10%, rgb(94 234 212 / 10%), transparent),
              radial-gradient(600px 400px at 90% 80%, rgb(34 197 94 / 12%), transparent),
              radial-gradient(500px 500px at 20% 90%, rgb(34 197 94 / 15%), transparent),
              radial-gradient(700px 700px at 70% 30%, rgb(34 197 94 / 10%), transparent),
              var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* -------------------------------- NAVBAR -------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgb(10 12 18 / 85%), rgb(10 12 18 / 60%));
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: contain;
  background: none;
  display: block;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }

.nav-links { display: none; gap: 20px; }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ===== NAV: hamburger & mobile menu ===== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 8px 10px;
  line-height: 0;
  cursor: pointer;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
}
.hamburger::before { top: -6px; position: relative; }
.hamburger::after  { top:  6px; position: relative; }

/* Pokaż hamburger, ukryj CTA na mobile */
@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; } /* ukrywa "Skontaktuj się ze mną" na mobile */
}

/* Mobilne rozwijane menu (używa istniejącego .nav-links) */
@media (max-width: 859px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgb(10 12 18 / 95%);
    border: 1px solid var(--ring);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    gap: 0;
    min-width: 220px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
  }
  .nav-links a:hover { background: rgb(255 255 255 / 6%); color: var(--text); }
  .nav-links.is-open { display: flex; }
  body.nav-open { overflow: hidden; } /* blokuje scroll gdy menu otwarte */
}

/* -------------------------------- CTA BUTTONS -------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--primary);
  color: #0a0c12;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.cta:hover { filter: brightness(1.08); }

.cta.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--ring);
  border-radius: 9999px;
  padding: 8px 16px;
  transition: all 0.2s ease-in-out;
}
.cta.outline:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(88,147,153,0.4);
  cursor: pointer;
}

/* Mały rozmiar przycisków */
.cta.sm {
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1.1;
  gap: 8px;
}

/* Wariant Spotify */
.cta.cta-spotify {
  background: #1DB954;
  color: #0a0c12;
  border: 1px solid transparent;
}
.cta.cta-spotify:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 0 3px rgba(29,185,84,0.35);
}
.cta.outline.cta-spotify {
  background: transparent;
  color: #1DB954;
  border: 1px solid rgba(29,185,84,0.6);
}
.cta.outline.cta-spotify:hover {
  border-color: #1DB954;
  box-shadow: 0 0 0 3px rgba(29,185,84,0.35);
  cursor: pointer;
}

/* Focus (dostępność) */
.cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(88,147,153,0.28);
}
.cta.cta-spotify:focus-visible,
.cta.outline.cta-spotify:focus-visible {
  box-shadow: 0 0 0 4px rgba(29,185,84,0.35);
}

/* Social buttons */
.social-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cta.outline.cta-fb {
  color: #1877F2;
  border-color: rgba(24,119,242,0.6);
}
.cta.outline.cta-fb:hover {
  border-color: #1877F2;
  box-shadow: 0 0 0 3px rgba(24,119,242,0.3);
}
.cta.outline.cta-ig {
  color: #E4405F;
  border-color: rgba(228,64,95,0.6);
}
.cta.outline.cta-ig:hover {
  border-color: #E4405F;
  box-shadow: 0 0 0 3px rgba(228,64,95,0.3);
}
.cta.outline.cta-tt {
  color: #fff;
  border-color: rgba(0,0,0,0.45);
}
.cta.outline.cta-tt:hover {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.28);
}

/* Focus dla platform */
.cta.outline.cta-fb:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(24,119,242,0.35);
}
.cta.outline.cta-ig:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(228,64,95,0.35);
}
.cta.outline.cta-tt:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,242,234,0.35);
}

/* -------------------------------- HERO -------------------------------- */
.hero { padding: 64px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 8%);
  padding: 6px 10px;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(24px, 4.5vw, 42px);
  line-height: 1.1;
  margin: 10px 0 6px;
}
.hero p {
  font-size: clamp(12px, 2.2vw, 14px);
  color: var(--text-muted);
  margin: 0 0 18px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  background: linear-gradient(to bottom right, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%));
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.5;
}

.mockup {
  border-radius: calc(var(--radius) * 1.25);
  border: 1px solid var(--ring);
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.mockup img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* -------------------------------- SEKCJE / FEATURE BOXES -------------------------------- */
.section { padding: 60px 0; }
.section h2 { font-size: clamp(24px, 3.3vw, 34px); margin: 0 0 6px; }
.section p.lead { color: var(--text-muted); margin: 0 0 24px; }

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 780px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  background: linear-gradient(to bottom right, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%));
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.feature h3 { margin: 6px 0 6px; font-size: 18px; }
.kpi { font-weight: 800; font-size: 28px; }

/* Miniatura w feature */
.feature-head {
  display: grid;
  grid-template-columns: 86px 1fr;
  column-gap: 12px;
  align-items: start;
  margin-bottom: 8px;
}
.feature-thumb {
  width: 86px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--ring);
  background: #0c0f19;
  flex-shrink: 0;
}
.feature-meta .kpi { margin: 0 0 6px; font-size: 28px; line-height: 1; }
.feature-meta h3 { margin: 0; }

@media (max-width: 520px) {
  .feature-head { grid-template-columns: 52px 1fr; column-gap: 10px; }
  .feature-thumb { border-radius: 0; }
}

/* -------------------------------- GALERIA (zawsze 3 w rzędzie) -------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* dokładnie 3 kolumny */
  gap: 24px; /* odstępy między zdjęciami */
  justify-items: center;
  align-items: start;
}

.shot {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: #0c0f19;
  border: 1px solid var(--ring);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shot img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* --- USUŃ stary #zoomed-image (zastąpiony nowym #lightbox) ---
#zoomed-image { ... } 
*/

/* Responsywność galerii */
@media (max-width: 960px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */
  }
}
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr; /* 1 kolumna na telefonach */
  }
}

/* -------------------------------- LIGHTBOX — powiększanie -------------------------------- */
/* --- LIGHTBOX (czysty, bez białych kółek) --- */
#lightbox {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  padding: 0;
}
#lightbox.is-open { display: flex; }
body.lightbox-open { overflow: hidden; }

#lightbox .lb-image {
  max-width: min(96vw, 1400px);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}

/* Strzałki i biały X — tylko znaki, bez obramowania */
#lightbox .lb-prev,
#lightbox .lb-next,
#lightbox .lb-close {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  padding: 0;
  box-shadow: none;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* tylko dla grafiki DSS */
.dss-thumb {
  width: 60%;
  max-width: 380px;
  display: block;
  margin: 1px auto 2px 1%;  /* lekki margines z lewej */
  border-radius: 12px;
  border: 1px solid var(--ring);
  box-shadow: var(--shadow);
}

/* Delikatny efekt hover */
#lightbox .lb-prev:hover,
#lightbox .lb-next:hover,
#lightbox .lb-close:hover {
  transform: scale(1.2);
  opacity: 0.9;
}

/* Pozycje elementów */
#lightbox .lb-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}
#lightbox .lb-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
#lightbox .lb-close {
  left: 24px;
  top: 24px;
  font-size: 36px;
  transform: none;
}

/* Większe znaki na telefonach */
@media (max-width: 640px) {
  #lightbox .lb-prev, #lightbox .lb-next { font-size: 34px; }
  #lightbox .lb-close { font-size: 38px; }
}

/* Licznik */
#lightbox .lb-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  padding: 0;
  border-radius: 999px;
  font-size: 12px;
}

/* Lepsza „hit area” strzałek na mobile */
@media (max-width: 640px) {
  #lightbox .lb-prev, #lightbox .lb-next, #lightbox .lb-close {
    width: 48px; height: 48px; font-size: 30px;
  }
  #lightbox .lb-prev { left: 8px; }
  #lightbox .lb-next { right: 8px; }
  #lightbox .lb-close { left: 8px; top: 8px; }
}

/* Delikatna animacja wejścia obrazu */
#lightbox.is-open .lb-image { animation: lb-in .18s ease-out both; }
@keyframes lb-in {
  from { transform: scale(.98); opacity: .6; }
  to   { transform: scale(1);   opacity: 1;  }
}

/* -------------------------------- CTA BIG -------------------------------- */
.cta-big {
  text-align: center;
  background: linear-gradient(to bottom right, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%));
  border: 1px solid var(--ring);
  border-radius: calc(var(--radius) * 1.25);
  padding: 32px;
  box-shadow: var(--shadow);
}
.cta-big p { color: var(--text-muted); margin: 4px 0 18px; }

/* -------------------------------- STOPKA -------------------------------- */
footer {
  padding: 40px 0;
  color: var(--text-muted);
  border-top: 1px solid rgb(255 255 255 / 6%);
  margin-top: 60px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 860px) {
  .foot-grid { grid-template-columns: 1.2fr 0.8fr; }
}
.small { font-size: 12px; }

/* -------------------------------- FORMULARZ -------------------------------- */
form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
input, textarea {
  background: #0c0f19;
  color: var(--text);
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgb(88 147 153 / 18%);
}
button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  background: var(--primary);
  color: #0a0c12;
  box-shadow: var(--shadow);
}
button:hover { filter: brightness(1.08); }

/* -------------------------------- UTILITIES -------------------------------- */
.muted { color: var(--text-muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--ring);
  padding: 6px 10px;
  border-radius: 999px;
}
