/* ============================================================
   FUNDACJA SZTUK PERFORMATYWNYCH "NOSTALGIC BOYS" — Styles
   ============================================================ */

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

:root {
  --gold:    #C9A84C;
  --gold-lt: #E2C97A;
  --dark:    #0E0E0E;
  --dark2:   #1A1A1A;
  --dark3:   #242424;
  --cream:   #F5F0E8;
  --text:    #E8E2D9;
  --text-muted: #A89E8E;
  --border:  rgba(201,168,76,0.25);
  --nav-h:   80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', Arial, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s;
}
a:hover { color: var(--gold-lt); }

/* ── HEADER / NAV ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

nav a {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.65rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 1rem 0;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}

/* ── PAGE OFFSET ── */
main { padding-top: var(--nav-h); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 2rem 1.5rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.35rem 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.hero-content h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.btn:hover {
  background: var(--gold);
  color: #000;
}
.btn-solid {
  background: var(--gold);
  color: #000;
}
.btn-solid:hover {
  background: var(--gold-lt);
}

/* ── GOLD DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 2.5rem;
  max-width: 260px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.divider-icon {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── EYEBROW ── */
.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ── SECTION BASE ── */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 1rem;
}
.section-header h2 em { color: var(--gold); font-style: italic; }
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* ── ALT SECTION ── */
.section-alt { background: var(--dark2); }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--dark3);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
}
.card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── TWO-COL LAYOUT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center center;
  border: 1px solid var(--border);
  display: block;
}

.two-col-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  margin-bottom: 1.25rem;
}
.two-col-text h2 em { color: var(--gold); font-style: italic; }
.two-col-text .eyebrow { display: block; margin-bottom: 0.75rem; }
.two-col-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ── QUOTE BANNER ── */
.quote-banner {
  background: var(--gold);
  padding: 4rem 1.5rem;
  text-align: center;
}
.quote-banner blockquote {
  max-width: 780px;
  margin: 0 auto;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  color: #000;
  line-height: 1.55;
}
.quote-banner cite {
  display: block;
  margin-top: 1.25rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.65);
  font-style: normal;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.page-hero-content .hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  border: none;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.page-hero-content h1 em { color: var(--gold); font-style: italic; }

/* ── PAGE HEADER SIMPLE (no image) ── */
.page-header-simple {
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
}
.page-header-simple h1 em { color: var(--gold); font-style: italic; }

/* ── GALLERY STRIP ── */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.gallery-item {
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  background: var(--dark2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Portrait images — keep subject centred in landscape slots */
.gallery-item img[src*="nb-kpo2"]   { object-position: center top; }
.gallery-item img[src*="nb-perf3"]  { object-position: center top; }
.gallery-item img[src*="nb-online2"]{ object-position: center top; }
.gallery-item img[src*="nb-tears1"] { object-position: center top; }
.gallery-item img[src*="nb-tears2"] { object-position: center top; }
.gallery-item img[src*="nb-tears3"] { object-position: center top; }

/* Two-col portrait images */
.two-col img[src*="nb-perf2"]  { object-position: center top; }
.two-col img[src*="nb-perf3"]  { object-position: center top; }
.two-col img[src*="nb-online2"]{ object-position: center top; }

/* ── LEGAL STRIP ── */
.legal-strip {
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--dark3);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  text-align: center;
}
.legal-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.legal-value {
  color: var(--text);
  font-size: 0.9rem;
}
.legal-value a { color: var(--gold); }

/* ── TEAM GRID ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: border-color 0.25s;
}
.team-card:hover { border-color: var(--gold); }
.team-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}
.team-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── WORKS LIST ── */
.works-list {
  max-width: 800px;
  margin: 0 auto;
}
.works-item {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: flex-start;
}
.works-item:last-child { border-bottom: none; }
.works-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.8;
  min-width: 60px;
  flex-shrink: 0;
}
.works-title {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.3rem;
  font-family: 'Playfair Display', serif;
}
.works-info {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── WORK META ── */
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.work-meta span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.work-meta strong { color: var(--gold); }

/* ── LEGAL DOC (Disclaimer) ── */
.legal-doc {
  max-width: 820px;
  margin: 0 auto;
}
.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section h2 {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-family: 'Playfair Display', serif;
}
.legal-section p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.legal-section ul {
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 2;
  margin-bottom: 1rem;
}
.legal-section ul li { margin-bottom: 0.25rem; }
.legal-section a { color: var(--gold); }
.legal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 2rem;
  font-style: italic;
}

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-block {
  background: var(--dark3);
  border: 1px solid var(--border);
  padding: 2.5rem;
}
.contact-org-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 2rem;
  line-height: 1.4;
}
.contact-item {
  margin-bottom: 1.5rem;
}
.contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.contact-value {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}
.contact-value a { color: var(--gold); }
.contact-divider {
  height: 1px;
  background: var(--border);
  margin: 1.75rem 0;
}
.contact-legal-block {}
.contact-legal-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.contact-legal-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
}
.contact-legal-row:last-child { border-bottom: none; }
.contact-legal-label { color: var(--text-muted); }
.contact-legal-value { color: var(--text); font-weight: 600; }
.contact-map-block iframe {
  border: 1px solid var(--border);
  display: block;
  width: 100%;
}

/* ── FOOTER ── */
footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}
.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-bottom: 2rem;
}
.footer-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-reg {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 0.5rem;
  line-height: 1.8;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.5;
}
.footer-vibe { margin-top: 0.75rem; }
.footer-vibe a {
  opacity: 0.4;
  font-weight: 300;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-vibe a:hover { opacity: 0.7; }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .two-col,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col img { aspect-ratio: 3/2; height: auto; }
  .two-col.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  nav { display: none; }
  .nav-toggle { display: flex; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { aspect-ratio: 3/2; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .works-item { gap: 1rem; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 1rem; }
  .hero-content h1 { font-size: 1.9rem; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { aspect-ratio: 1/1; }
  .legal-strip { flex-direction: column; align-items: center; gap: 1.25rem; }
  .work-meta { flex-direction: column; gap: 0.5rem; }
}
