/* --- GOTOWY KOD 8-POINT SYSTEM --- */

/* --- FONT SCRIPT --- */
/* --- RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- GLOBAL --- */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* --- 8-POINT SPACING SYSTEM --- */
:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-9: 72px;
  --space-10: 80px;

  --bg: #1b1b1b;
  --card: #232323;
  --text: #d0d0d0;
  --muted: #888;
  --border: #2f2f2f;
  --accent: #ffffff;
  --hero-bg: url("img/autoportret-katowice-studio-andrzej-hanzlik-hero.jpg");
}

/* --- BODY --- */
body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- NAV --- */
header {
  position: relative;
  width: 100%;
  padding: var(--space-3);
  text-align: center;
  background: rgba(27, 27, 27, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
}

nav a {
  color: var(--muted);
  margin: 0 var(--space-3);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover {
  color: #fff;
}

/* --- HERO --- */
.hero {
  height: 65vh;
  background: var(--hero-bg) center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  text-align: left;
  padding: 0 var(--space-8) var(--space-8) var(--space-8);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 27, 27, 0.75),
    rgba(27, 27, 27, 0.4)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  letter-spacing: 0.5px;

  color: #fff;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-family: "EB Garamond", serif;
  font-size: 1.4rem;
  margin-top: var(--space-2);
  color: rgba(255, 255, 255, 0.85);
}

/* --- SEKCJE --- */
section {
  padding: 0 var(--space-3);
  max-width: 1100px;
  margin: var(--space-9) auto;
  scroll-margin-top: var(--space-10);
}

.landing-biznes {
  max-width: 850px;
}

.about,
.contact {
  padding: 0 var(--space-3);
}

h2 {
  text-align: center;
  margin-bottom: var(--space-5);
  font-family: "EB Garamond", serif;
  font-size: 2.2rem;
  font-weight: 400;
}

/* --- PRICE BOX --- */
.price-box {
  margin-top: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--border);
  background: rgba(35, 35, 35, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}

.price-box:hover {
  border-color: #555;
  transform: translateY(-4px);
}

.price-box h3 {
  font-family: "EB Garamond", serif;
  font-weight: 400;
  margin-bottom: var(--space-4);
  text-align: center;
}

.price-box .price {
  margin-top: var(--space-4);
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1px;
}

/* --- GALERIA --- */
/* =======================
   ABOUT
======================= */
.about .about-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about .about-content p {
  margin-bottom: var(--space-3);
}

/* =======================
   CATEGORY TILES (INDEX)
======================= */
.galeria-grid.galeria-categories {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .galeria-grid.galeria-categories {
    grid-template-columns: 1fr;
  }
}

.galeria-grid,
.historie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  justify-items: center;
}

.galeria-item,
.historie-item {
  position: relative;
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.galeria-item img,
.historie-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
  will-change: transform;
}

.galeria-item:hover img,
.historie-item:hover img {
  transform: scale(1.05);
}

.galeria-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-5) var(--space-3);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.galeria-overlay span {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* --- GALERIA: obsługa obrazków bez wrappera .galeria-item --- */
.galeria-grid img {
  width: 100%;
  max-width: 500px;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
  will-change: transform;
}

.galeria-grid a:hover img,
.galeria-grid img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* --- HISTORIE: homepage (sekcja #historie) --- */
#historie .historie-grid {
  display: flex;
  justify-content: center;
}

#historie .historie-item {
  position: relative;
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}

#historie .historie-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#historie .historie-item:hover img {
  transform: scale(1.05);
}

#historie .historie-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

#historie .historie-overlay span {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

#historie .historie-text {
  text-align: center;
  margin-top: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #bbb;
}

/* --- OPINIE --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.review-card {
  background: rgba(35, 35, 35, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: var(--space-5);
  border: 1px solid var(--border);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover {
  border-color: #555;
  transform: translateY(-4px);
}

/* --- PRZYCISKI --- */
.btn-google,
.btn-contact {
  display: inline-block;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  transition:
    background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-google {
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-6);
}

.btn-contact {
  padding: var(--space-2) var(--space-5);
  font-size: 13px;
}

.btn-google:hover,
.btn-contact:hover {
  background: #fff;
  color: #000;
}

.btn-contact:hover {
  transform: translateY(-3px);
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

/* --- STOPKA --- */
footer {
  text-align: center;
  padding: var(--space-6) var(--space-3);
  color: #666;
  font-size: 12px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .reviews-grid,
  .galeria-grid,
  .historie-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(2.8rem, 5vw, 3.6rem);
    letter-spacing: 0.5px;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .hero {
    padding: 0 var(--space-4) var(--space-6) var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero {
    height: 55vh;
    padding: 0 var(--space-3) var(--space-5) var(--space-3);
  }

  h1 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(2.8rem, 5vw, 3.6rem);
    letter-spacing: 0.5px;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* --- BACK BUTTON --- */
.back-to-home {
  position: fixed;
  bottom: var(--space-3);
  left: var(--space-3);
  z-index: 3000;

  padding: var(--space-2) var(--space-5);
  border-radius: 50px;

  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);

  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.back-to-home:hover {
  background: #fff;
  color: #000;
}

/* --- MOBILE BREAK – O MNIE --- */
.mobile-break {
  display: inline;
}

@media (max-width: 768px) {
  .mobile-break {
    display: block;
  }
}

@supports (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  header {
    background: rgba(27, 27, 27, 0.65);
  }

  .price-box {
    background: rgba(35, 35, 35, 0.45);
  }

  .review-card {
    background: rgba(35, 35, 35, 0.55);
  }
}

/* --- FOOTER NOTE (zamiast inline style w index.html) --- */
.footer-note {
  text-align: center;
  margin-top: 20px;
  color: #888;
  font-size: 14px;
}

/* --- KOMPONENT: OTHER LINKS (other-galleries + other-stories) --- */
.other-galleries,
.other-stories {
  margin-top: 10px;
  text-align: center;
}

.other-galleries h2,
.other-galleries h3,
.other-stories h3 {
  font-family: "EB Garamond", serif;
  font-weight: 400;
  margin-bottom: 30px;
  text-align: center;
}

.other-galleries a,
.other-stories a {
  display: inline-block;
  margin: 10px 15px;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.other-galleries a:hover,
.other-stories a:hover {
  background: #fff;
  color: #000;
}

/* --- KOMPONENT: STORIES GRID (kafelki prowadzące do sub-galerii) --- */
.stories {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.story-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-card img {
  width: 100%;
  display: block;
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: #fff;
  transition: 0.4s;
}

.story-overlay h3 {
  font-family: "EB Garamond", serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.story-overlay p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.story-card:hover img {
  transform: scale(1.08);
}

.story-card:hover {
  transform: translateY(-6px);
}

@media (max-width: 900px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }
}

/* --- TEMPLATE: STORY PAGES --- */
.story-content {
  max-width: 800px;
  margin: 100px auto;
  padding: 0 20px;
  line-height: 1.8;
  font-size: 1rem;
}

.story-content h2 {
  font-family: "EB Garamond", serif;
  font-weight: 400;
  margin-bottom: 30px;
  text-align: center;
}

.story-content p {
  margin-bottom: 25px;
  color: #ccc;
}

/* GALERIA tylko na story pages: section.galeria zaraz po .story-content */
.story-content + .galeria {
  padding: 60px 20px 100px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.other-stories {
  text-align: center;
  padding-bottom: 100px;
}
/* =======================
   LIGHTBOX
======================= */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
  z-index: 9999;
}

#lightbox.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.3s ease,
    visibility 0s;
}

#lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border-radius: 6px;
}

#lightbox .close,
#lightbox .prev,
#lightbox .next {
  position: absolute;
  color: white;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
}

#lightbox .close {
  top: 20px;
  right: 30px;
  font-size: 36px;
}

#lightbox .prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox .next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox .prev:hover,
#lightbox .next:hover,
#lightbox .close:hover {
  opacity: 0.7;
}

/* =======================
   MANIFEST
======================= */
.manifest {
  max-width: 1100px;
  margin: var(--space-9) auto;
  padding: 0 var(--space-3);
}

.manifest .manifest-lead {
  max-width: 900px;
  margin: 0 auto var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(35, 35, 35, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  font-family: "EB Garamond", serif;
  font-size: 2.2rem;
  line-height: 1.2;
  text-align: center;
  color: #fff;
}

.manifest .manifest-text {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.manifest .manifest-text p {
  margin-bottom: var(--space-4);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.manifest .manifest-text strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 900px) {
  .manifest .manifest-lead {
    padding: var(--space-5);
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .manifest .manifest-lead {
    font-size: 1.6rem;
  }
}

/* FOOTER LINK – unified style */
footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* --- SPACING ADJUSTMENT: landing-biznes / stories / other-galleries --- */
section.landing-biznes {
  margin-bottom: var(--space-3);
}

section.stories {
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}

section.stories + .other-galleries {
  margin-top: var(--space-3);
}

/* --- SPACING ADJUSTMENT: story-content / galeria on *-sub-0* pages --- */
section.story-content {
  margin-bottom: var(--space-3);
}

section.story-content + section.galeria {
  margin-top: var(--space-3);
}

/* Delikatne dopasowanie typografii pod treści „legal/info”, bez psucia globalnego wyglądu */
.policy {
  max-width: 900px;
}
.policy h2 {
  text-align: left;
  margin-bottom: var(--space-3);
}
.policy h3 {
  font-family: "EB Garamond", serif;
  font-weight: 400;
  font-size: 1.4rem;
  margin: var(--space-4) 0 var(--space-2);
}
.policy p,
.policy li {
  color: var(--text);
}
.policy ul {
  padding-left: 20px;
}
.policy li {
  margin-bottom: 10px;
}
.policy .muted {
  color: var(--muted);
}
.policy .note-box {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  background: rgba(35, 35, 35, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
}
.policy a {
  color: rgba(255, 255, 255, 0.9);
}
.policy a:hover {
  color: #fff;
}


/* =======================
   GOOGLE REVIEWS SLIDER
======================= */
.reviews-slider {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  min-height: 260px;
}

.reviews-slider .review-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.reviews-slider .review-card.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reviews-slider .review-card::before {
  content: "“";
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem;
  line-height: 0.8;
  opacity: 0.18;
  margin-bottom: var(--space-2);
}

.reviews-slider .review-card p {
  font-size: 1.02rem;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-4);
}

.reviews-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
  opacity: 0.9;
}

.reviews-dot:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.45);
}

.reviews-dot.active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .reviews-slider {
    max-width: 100%;
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .reviews-slider {
    min-height: 360px;
  }

  .reviews-slider .review-card::before {
    font-size: 3.2rem;
  }

  .reviews-slider .review-card p {
    font-size: 0.98rem;
  }
}


/* =======================
   BLOG GRID
======================= */
.blog-intro {
  max-width: 760px;
  margin: 0 auto var(--space-6);
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  justify-items: center;
}

.blog-item {
  position: relative;
  max-width: 500px;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
  will-change: transform;
}

.blog-item:hover img {
  transform: scale(1.05);
}

.blog-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-5) var(--space-3);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
}

.blog-overlay span {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: block;
  margin-bottom: var(--space-1);
}

.blog-overlay small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 90%;
}

.blog-post {
  max-width: 850px;
  margin: var(--space-8) auto;
  padding: 0 var(--space-3);
}

.blog-post h2 {
  text-align: left;
  margin-bottom: var(--space-3);
}

.blog-post h3 {
  font-family: "EB Garamond", serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin: var(--space-5) 0 var(--space-2);
  color: #fff;
}

.blog-post p,
.blog-post li {
  margin-bottom: var(--space-3);
}

.blog-post ul {
  padding-left: 1.25rem;
  margin-bottom: var(--space-3);
}

.blog-cta {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--border);
  background: rgba(35, 35, 35, 0.75);
  border-radius: 16px;
  text-align: center;
}

.blog-cta h3 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
