/*
 * Global styles for Wiktor Jungowski portfolio site
 *
 * This stylesheet defines the core typography, navigation and layout rules
 * shared across all pages. The design takes inspiration from the original
 * Squarespace templates but uses only modern CSS without any external
 * dependencies. Responsive behaviour is driven by relative units and
 * flexbox/grid layouts where appropriate.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap');

/* Reset some basic elements */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #111;
  background-color: #fff;
}

/* Header and navigation */
header {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e0e0e0;
}

nav {
  max-width: 10000px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: auto;
}

/* Primary navigation list */
.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: auto;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: #111;
  font-size: 1.075rem;
  text-transform: uppercase;
  font-weight: 400;
  position: 0;
  padding-bottom: 0.25rem;
}

.nav-list a:hover,
.nav-list a.active {
  border-bottom: 2px solid #111;
}

.social {
   width: 3%;
   display: block;
  margin-left: auto;
}

.social a {
  
  text-decoration: none;
  color: #111;
  font-size: 0.001rem;
}


.social img {
  width: 50%;
  
  display: flex;
  margin-left: auto;
}

/* General heading styles */
h1 {
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

h2 {
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}

/* Grid layouts for the main and photography pages */
.gallery {
  column-count: 3;
  column-gap: 20px;
  max-width: 10000px;
  margin: 0 auto;
  padding: 2rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
}

.gallery-item img {
  width: 100%;
  display: block;
}

/* Contact info bar used on many pages */
.contact-bar {
  max-width: 10000px;
  margin: 3rem auto 1rem;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 1.275rem;
  border-top: 1px solid #e0e0e0;
}

.contact-bar a {
  color: #111;
  text-transform: uppercase;
  text-decoration: none;
}

.contact-bar span {
  color: #111;
}

/* About page specific styles */
.about-hero,
.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 10000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-hero .text,
.about-section .text {
  flex: 1 1 50%;
  max-width: 50%;
  padding-right: 2rem;
}

.about-hero .image,
.about-section .image {
  flex: 1 1 50%;
  max-width: 50%;
}

.about-hero .image img,
.about-section .image img {
  width: 100%;
  display: block;
}

.about-hero h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-hero hr {
  border: none;
  border-bottom: 1px solid #111;
  margin: 1.5rem 0;
}

.about-hero p,
.about-section p {
  font-size: 1rem;
  margin: 0 0 1rem;
}

/* Clearvision page styles */
.clearvision-container {
  min-height: 100vh;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: radial-gradient(circle at 30% 30%, #f5f5f5 0%, #cfcfcf 50%, #111 100%);
  color: #fff;
}

.clearvision-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  max-width: 10000px;
  margin-bottom: 3rem;
}

.clearvision-content .video-column,
.clearvision-content .text-column {
  flex: 1 1 45%;
  max-width: 45%;
}

.clearvision-content video {
  width: 100%;
  height: auto;
  border: 2px solid #fff;
}

.clearvision-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.clearvision-content p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #fff;
}

.contact-form-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-form-container h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #fff;
}

.contact-form-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-container input,
.contact-form-container textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  width: 100%;
}

.contact-form-container button {
  padding: 1rem 2rem;
  font-size: 1rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.contact-form-container button:hover {
  background: #fff;
  color: #000;
}

/* Links to individual photography posts on the photography page */
.posts-links {
  max-width: 10000px;
  margin: 0 auto;
  padding: 2rem;
}

.posts-links ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.posts-links a {
  text-decoration: none;
  color: #0a3e6e;
  font-weight: 500;
  font-size: 1rem;
}

.posts-links a:hover {
  text-decoration: underline;
}

/* Slider styles for project pages */
.project-page {
  max-width: 4000px;
  width: 50%;
  margin: 0 auto;
  position: relative;
  position: center;
  max-height: 50%;
  padding: 2rem;
}

.project-page h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.slider {
  position: relative;
  width: 100%;
height: 100%;
  margin: 0 auto;
  position: center;
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
}

.slider button.prev,
.slider button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
}

.slider button.prev:hover,
.slider button.next:hover {
  color: #333;
}

.slider button.prev {
  left: -2rem;
}

.slider button.next {
  right: -2rem;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.pt-4 {
  padding-top: 2rem;
}

.pb-4 {
  padding-bottom: 2rem;
}

/*@media (max-width: 750px) {
  .gallery {
    column-count: 1;
  }
  .about-hero .text,
  .about-section .text,
  .about-hero .image,
  .about-section .image,
  .clearvision-content .video-column,
  .clearvision-content .text-column {
    flex: 1 1 100%;
    max-width: 100%;
    padding-right: 0;
  }
  .slider button.prev,
  .slider button.next {
    font-size: 1.5rem;
    left: -1rem;
    right: -1rem;
  }
}
*/
/* --- MOBILE FIRST FIXES (drop-in override) ------------------------------ */

/* Niech bazowy rozmiar pisma delikatnie skaluje */
html { font-size: clamp(14px, 1.7vw, 16px); }

/* Lżejsze marginesy w headerze */
header nav { padding: .75rem 1rem; }

/* Zmniejsz minimalnie rozstrzał liter w logo i linkach */
.logo { letter-spacing: 0.04em; }
.nav-list a { letter-spacing: 0.02em; }

/* Strzałki slidera nie wchodzą na środek obrazka */
.slider { overflow: visible; }
.slider .nav,
.slider button.prev,
.slider button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.35);
  color: #fff;
  z-index: 3;
}
.slider button.prev { left: -16px; }
.slider button.next { right: -16px; }

/* Siatka galerii – niech obrazki nigdy nie „wypychają” */
.gallery-item img { width: 100%; height: auto; display: block; }

/* ====== breakpoint: <= 1024px ========================================= */
@media (max-width: 1024px) {
  /* Logo w swoim wierszu, nawigacja w kolejnym */
  nav { flex-wrap: wrap; row-gap: .5rem; }
  .logo { flex: 1 1 100%; font-size: 1.35rem; }
  .nav-list {
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
  }
  .nav-list a { font-size: 1rem; padding-bottom: .15rem; }

  /* Trochę ciaśniejsze krawędzie siatki i kontaktu */
  .gallery, .posts-links, .contact-bar { padding: 1.25rem; }
}

/* ====== breakpoint: <= 768px (telefony) ================================ */
@media (max-width: 768px) {
  /* Galeria = 1 kolumna; większa oddech */
  .gallery { column-count: 1; column-gap: 0; padding: 1rem; }
  .gallery-item { margin-bottom: 1.25rem; }

  /* Logo większe, linki czytelne ale krótsze */
  .logo { font-size: 1.6rem; letter-spacing: 0.03em; }
  .nav-list { gap: 1rem 1.25rem; }
  .nav-list a { font-size: .98rem; }

  /* Social ikona niech będzie mała i nie rozszerza wiersza */
  .social { width: auto; margin-left: 0; }
  .social img { width: 24px; height: 24px; display: inline-block; }

  /* Sekcje „about/clearvision” – pełna szerokość */
  .about-hero .text,
  .about-section .text,
  .about-hero .image,
  .about-section .image,
  .clearvision-content .video-column,
  .clearvision-content .text-column {
    flex: 1 1 100%;
    max-width: 100%;
    padding-right: 0;
  }
  .about-hero .image img,
  .about-section .image img { width: 100%; height: auto; }

  /* Strzałki bliżej krawędzi na bardzo wąskich ekranach */
  .slider button.prev { left: 8px; }
  .slider button.next { right: 8px; }

  /* Węższe paddingi w contact bar */
  .contact-bar { padding: 1rem; font-size: 1.05rem; }
}

/* ====== kosmetyka: projekty/slider kontener ============================ */
.project-page {
  max-width: 1200px;      /* zamiast 4000 / 50% – lepiej kontrolować szerokość */
  width: min(92vw, 1200px);
  padding: 1rem;
}

/* === SLIDER: pozycje strzałek (desktop + mobile) === */
.slider { position: relative; overflow: visible; }

.slider button.prev,
.slider button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  color: #fff;
  border: 0;
  cursor: pointer;
  z-index: 5;
}

/* Desktop */
.slider button.prev { left: clamp(8px, 2.5vw, 14px); right: auto; }
.slider button.next { right: clamp(8px, 2.5vw, 14px); left:  auto; }

/* Telefony */
@media (max-width: 768px) {
  .slider button.prev { left: 8px;  right: auto; }
  .slider button.next { right: 8px; left:  auto; }
}

@media (max-width: 420px) {
  .slider button.prev,
  .slider button.next { width: 40px; height: 40px; }
}