* { box-sizing: border-box; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

html { background: #080808; }
body { margin: 0; font-family: 'Jost', sans-serif; background: #080808; color: #e8e0d4; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }

footer { width: 100%; margin-top: auto; }

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #080808; }
::-webkit-scrollbar-thumb { background: #c9a96e; border-radius: 2px; }

/* Glassmorphism navbar */
.glass-nav {
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.page-home .glass-nav {
  background: rgba(0, 0, 0, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.page-home .glass-nav a,
.page-home .glass-nav .font-serif,
.page-home .glass-nav .font-sans {
  color: rgba(255, 255, 255, 0.9);
}

.page-home .glass-nav .text-muted {
  color: rgba(255, 255, 255, 0.55);
}

.page-home .glass-nav #h1,
.page-home .glass-nav #h2,
.page-home .glass-nav #h3 {
  background-color: rgba(255, 255, 255, 0.7);
}

.page-home .nav-link:hover,
.page-home .nav-link.active {
  color: #fff;
}

.page-home::before {
  opacity: 0.15;
}

/* Home page: keep everything within one viewport */
.page-home .hero-full {
  min-height: calc(100vh - 88px);
}

.page-home footer {
  margin-top: 0;
  flex: 0 0 88px;
  padding-top: 1.1rem !important;
  padding-bottom: 1.1rem !important;
}

/* Decorative line */
.deco-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, #c9a96e, transparent);
}

/* ========== HERO STRONA GŁÓWNA — fullscreen ========== */
.hero-full {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-full__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-full__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.hero-full__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-full__label {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.hero-full__name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.hero-full__cta {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  padding: 0.9rem 2rem;
  border: 1px solid rgba(255,255,255,0.4);
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.hero-full__cta:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

/* Gallery category filter */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
  margin-bottom: 2.5rem;
}
.gallery-filter-btn {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a7265;
  background: transparent;
  border: 1px solid rgba(201,169,110,0.2);
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.gallery-filter-btn:hover {
  color: #c9a96e;
  border-color: rgba(201,169,110,0.5);
}
.gallery-filter-btn.active {
  color: #c9a96e;
  border-color: rgba(201,169,110,0.6);
  background: rgba(201,169,110,0.06);
}
.masonry-item.gallery-hidden {
  display: none;
}

/* Masonry layout */
.masonry {
  columns: 1;
  column-gap: 12px;
}
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
  filter: brightness(0.75) saturate(0.8);
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.6s ease;
}
.masonry-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.95) saturate(1.1);
}

.masonry-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  padding: 24px 16px 16px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.masonry-item:hover .masonry-overlay {
  transform: translateY(0);
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 4, 0.97);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(8px);
}
#lightbox.active {
  opacity: 1;
  pointer-events: all;
}
#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}
#lightbox.active img {
  transform: scale(1);
}
#lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 2rem;
  color: #7a7265;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  background: none;
  border: none;
}
#lightbox-close:hover { color: #c9a96e; }
#lightbox-title {
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.1rem;
  color: #7a7265;
  letter-spacing: 0.1em;
}

/* Form fields */
.form-field {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,110,0.15);
  color: #e8e0d4;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-field:focus {
  outline: none;
  border-color: rgba(201,169,110,0.6);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.08);
}
.form-field::placeholder { color: #4a4540; }

/* CTA button */
.cta-btn {
  border: 1px solid rgba(201,169,110,0.5);
  color: #c9a96e;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 400;
  padding: 14px 36px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #c9a96e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cta-btn:hover { color: #080808; }
.cta-btn:hover::before { transform: scaleX(1); }
.cta-btn span { position: relative; z-index: 1; }

/* Nav links */
.nav-link {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a7265;
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: #c9a96e;
  transition: width 0.3s;
}
.nav-link:hover { color: #c9a96e; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #c9a96e; }
.nav-link.active::after { width: 100%; }

/* About image frame */
/* ========== STRONA O MNIE ========== */
.about-page {
  padding: 7rem 1.75rem 5rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .about-page {
    padding: 8rem 2rem 6rem;
  }
}

.about-page__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem 4rem;
  align-items: start;
}

@media (min-width: 900px) {
  .about-page__inner {
    grid-template-columns: 0.95fr 1fr;
    gap: 4rem 5rem;
    align-items: center;
  }
}

.about-page__image-wrap {
  position: relative;
  order: 2;
}

@media (min-width: 900px) {
  .about-page__image-wrap {
    order: 1;
  }
}

.about-page__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  filter: grayscale(18%) contrast(1.02) brightness(0.88);
  transition: filter 0.5s ease;
}

.about-page__image-wrap:hover .about-page__img {
  filter: grayscale(8%) contrast(1.03) brightness(0.9);
}

@media (min-width: 900px) {
  .about-page__img {
    max-height: 75vh;
    aspect-ratio: 3 / 4;
  }
}

.about-page__text {
  order: 1;
}

@media (min-width: 900px) {
  .about-page__text {
    order: 2;
    padding-top: 0.5rem;
  }
}

.about-page__label {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 1.25rem;
}

.about-page__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  color: #e8e0d4;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.about-page__lead {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #b8b0a4;
  margin-bottom: 1.75rem;
}

.about-page__body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #b8b0a4;
  margin-bottom: 1.5rem;
}

.about-page__body:last-of-type {
  margin-bottom: 0;
}

.about-page__rule {
  max-width: 800px;
  margin: 0 auto;
}

/* Section reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu */
#mobile-menu {
  display: none;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(20px);
}
#mobile-menu.open { display: block; }

/* Gold rule */
.gold-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.3), transparent);
}

/* Submit button */
.submit-btn {
  background: transparent;
  border: 1px solid rgba(201,169,110,0.4);
  color: #c9a96e;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 14px 48px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #c9a96e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.submit-btn:hover { color: #080808; }
.submit-btn:hover::before { transform: scaleX(1); }
.submit-btn span { position: relative; z-index: 1; }

/* Lightbox nav buttons */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(201,169,110,0.25);
  color: #7a7265;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-weight: 200;
}
.lightbox-nav-btn:hover {
  border-color: rgba(201,169,110,0.7);
  color: #c9a96e;
}
#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }

#lightbox-counter {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #4a4540;
}

/* Contact page (simple, larger layout) */
.contact-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
}

.contact-page__inner {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.contact-page__label {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 1rem;
}

.contact-page__title {
  font-family: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.1;
  color: #e8e0d4;
  margin: 0 0 1.1rem;
}

.contact-page__subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #7a7265;
  margin: 0 0 2rem;
}

.contact-page__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1rem;
}

.contact-page__icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  color: #c9a96e;
  text-decoration: none;
  border: 1px solid rgba(201, 169, 110, 0.28);
  background: rgba(255, 255, 255, 0.01);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-page__icon-link:hover {
  color: #080808;
  background: #c9a96e;
  border-color: #c9a96e;
}

.contact-page__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-page__icon svg {
  width: 100%;
  height: 100%;
}

