/* ============================================
   LOOP EVENTS — style.css
   Design: 1920px desktop-first
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-beige: #f5f2ef;
  --color-gray: #838383;

  --font: 'Montserrat', sans-serif;
  --fw-thin: 100;
  --fw-extralight: 200;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  --page-max: 1920px;
  --content-padding: 256px;
  --half: 960px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: var(--fw-regular);
  color: var(--color-black);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- HTMX Page Transitions --- */
#content {
  view-transition-name: content;
}

::view-transition-old(content) {
  animation: fade-out 0.3s ease-out;
}

::view-transition-new(content) {
  animation: fade-in 0.3s ease-in;
}

@keyframes fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(10px); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.htmx-swapping {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border: 1px solid var(--color-black);
  border-radius: 24px;
  font-family: var(--font);
  font-weight: var(--fw-medium);
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: transparent;
  color: var(--color-black);
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--white {
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-white);
  color: var(--color-black);
}

.btn--bold {
  font-weight: var(--fw-bold);
  font-size: 16px;
  line-height: 16px;
}

/* ============================================
   1. HEADER / NAV
   ============================================ */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 15px var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img {
  width: 91px;
  height: 30px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header__nav a {
  font-size: 12px;
  font-weight: var(--fw-regular);
  line-height: 12px;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.site-header__nav a:hover {
  opacity: 0.7;
}

.site-header__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__social a {
  display: flex;
}

.site-header__social img {
  width: 16px;
  height: 16px;
}

.site-header--scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  transition: background 0.4s;
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 960px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 323px;
  padding-left: var(--content-padding);
  max-width: 808px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  font-weight: var(--fw-thin);
  font-size: 64px;
  line-height: 72px;
  color: var(--color-white);
}

.hero__subtitle {
  font-weight: var(--fw-medium);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white);
}

/* ============================================
   3. BLACK BANNER
   ============================================ */
.banner {
  background: var(--color-beige);
  padding: 80px 0;
  text-align: center;
}

.banner__text {
  font-weight: var(--fw-extralight);
  font-style: italic;
  font-size: 18px;
  line-height: 18px;
  color: #5a4e42;
}

.banner__text strong {
  font-weight: var(--fw-medium);
  font-style: italic;
  color: var(--color-black);
}

/* ============================================
   4-6. ALTERNATING SECTIONS (50/50)
   ============================================ */
.split {
  display: flex;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}

.split__image {
  width: 50%;
  height: 620px;
  overflow: hidden;
  flex-shrink: 0;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__text {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  flex-shrink: 0;
}

/* Tekst LEWY, obraz PRAWY (sekcja 4, 6) — tekst right-aligned */
.split--text-left .split__text {
  align-items: flex-end;
  text-align: right;
  padding-left: var(--content-padding);
  padding-right: 104px;
}

/* Obraz LEWY, tekst PRAWY (sekcja 5) — tekst left-aligned */
.split--text-right .split__text {
  align-items: flex-start;
  text-align: left;
  padding-left: 104px;
  padding-right: 200px;
}

.split__title {
  font-weight: var(--fw-thin);
  font-size: 64px;
  line-height: 72px;
  color: var(--color-black);
}

.split__desc {
  font-weight: var(--fw-light);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-black);
}

.split--text-right .split__desc {
  font-weight: var(--fw-regular);
}

/* Section 6 also regular weight */
.split--section-6 .split__desc {
  font-weight: var(--fw-regular);
}

/* ============================================
   7. FEATURES SECTION
   ============================================ */
.features {
  background: var(--color-beige);
  padding: 200px 0;
  text-align: center;
}

.features__title {
  font-weight: var(--fw-thin);
  font-style: italic;
  font-size: 40px;
  line-height: 40px;
  color: var(--color-black);
  margin-bottom: 80px;
}

.features__grid {
  display: flex;
  justify-content: center;
  gap: 72px;
}

.features__item {
  width: 268px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.features__circle {
  width: 126px;
  height: 126px;
  border: 1px solid var(--color-black);
  border-radius: 50%;
  overflow: hidden;
}

.features__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.features__name {
  font-weight: var(--fw-regular);
  font-size: 20px;
  line-height: 20px;
  color: var(--color-black);
}

.features__detail {
  font-weight: var(--fw-light);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-black);
}

/* ============================================
   8. SECONDARY HERO
   ============================================ */
.secondary-hero {
  position: relative;
  width: 100%;
  height: 815px;
  overflow: hidden;
}

.secondary-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secondary-hero__overlay {
  display: none;
}

.secondary-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 230px;
  padding-left: var(--content-padding);
  max-width: 808px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.secondary-hero__title {
  font-weight: var(--fw-thin);
  font-size: 64px;
  line-height: 72px;
  color: var(--color-white);
}

.secondary-hero__desc {
  font-weight: var(--fw-medium);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white);
}

/* ============================================
   9. CONTACT SECTION
   ============================================ */
.contact {
  background: var(--color-white);
  padding: 200px 0 100px;
}

.contact__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 272px;
}

.contact__info {
  width: 448px;
  flex-shrink: 0;
}

.contact__title {
  font-weight: var(--fw-thin);
  font-size: 64px;
  line-height: 72px;
  color: var(--color-black);
  margin-bottom: 16px;
}

.contact__desc {
  font-weight: var(--fw-regular);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-black);
}

.contact__form {
  width: 688px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
}

.contact__fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__field {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-black);
  padding: 24px 8px;
  font-family: var(--font);
  font-weight: var(--fw-regular);
  font-size: 14px;
  line-height: 14px;
  color: var(--color-black);
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
}

.contact__field::placeholder {
  color: var(--color-gray);
}

.contact__field:focus {
  border-bottom-color: var(--color-gray);
}

.contact__field--date {
  background: var(--color-beige);
}

.contact__field--date::placeholder {
  color: var(--color-black);
}

/* ============================================
   10. FOOTER
   ============================================ */
.site-footer {
  background: var(--color-black);
  padding: 120px 0;
}

.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.site-footer__left {
  width: 688px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-footer__logo img {
  width: 88px;
  height: 29px;
}

.site-footer__follow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__follow-title {
  font-weight: var(--fw-thin);
  font-size: 40px;
  line-height: 40px;
  color: var(--color-white);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__social a {
  display: flex;
}

.site-footer__social img {
  width: 24px;
  height: 24px;
}

.site-footer__right {
  width: 688px;
  flex-shrink: 0;
  display: flex;
  gap: 32px;
}

.site-footer__col {
  width: 328px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.site-footer__col-title {
  font-weight: var(--fw-medium);
  font-size: 14px;
  line-height: 14px;
  color: var(--color-white);
}

.site-footer__col a {
  font-weight: var(--fw-light);
  font-size: 14px;
  line-height: 14px;
  color: var(--color-white);
  text-transform: lowercase;
  transition: opacity 0.3s;
}

.site-footer__col a:hover {
  opacity: 0.7;
}

/* ============================================
   SUBPAGE HERO (600px, reużywalny)
   ============================================ */
.subpage-hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.subpage-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subpage-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 241px;
  padding-left: var(--content-padding);
}

.subpage-hero__title {
  font-weight: var(--fw-extralight);
  font-size: 64px;
  line-height: 72px;
  color: var(--color-white);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* ============================================
   ABOUT — intro two-column
   ============================================ */
.about-intro {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 200px var(--content-padding) 0;
  display: flex;
  gap: 32px;
}

.about-intro__left {
  width: 688px;
  flex-shrink: 0;
}

.about-intro__title {
  font-weight: var(--fw-thin);
  font-size: 64px;
  line-height: 72px;
  color: var(--color-black);
}

.about-intro__right {
  width: 688px;
  flex-shrink: 0;
}

.about-intro__desc {
  font-weight: var(--fw-light);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-black);
}

.about-intro--alt {
  padding-top: 100px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ============================================
   EXPERIENCE — grid section
   ============================================ */
.experience {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 80px var(--content-padding) 100px;
}

.experience__heading {
  font-weight: var(--fw-extralight);
  font-size: 32px;
  line-height: 32px;
  color: var(--color-black);
  margin-bottom: 48px;
}

.experience__grid {
  display: grid;
  grid-template-columns: repeat(4, 328px);
  column-gap: 32px;
  row-gap: 56px;
}

.experience__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.experience__icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-black);
  border-radius: 50%;
}

.experience__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.experience__name {
  font-weight: var(--fw-regular);
  font-size: 18px;
  line-height: 20px;
  color: var(--color-black);
}

.experience__detail {
  font-weight: var(--fw-light);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-black);
}

/* ============================================
   GALLERY STRIP (reużywalny)
   ============================================ */
.gallery-strip {
  width: 100%;
  overflow: hidden;
  margin: 80px 0;
}

/* Na stronie dekoracji pasek przyklejony do albumów — bez górnej przerwy */
.split + .gallery-strip {
  margin-top: 0;
}

.gallery-strip__inner {
  display: flex;
  min-width: 100%;
  width: max-content;
  margin: 0 auto;
}

.gallery-strip__item {
  width: 704px;
  height: 455px;
  flex-shrink: 0;
  overflow: hidden;
}

.gallery-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Language Switcher --- */
.site-header__lang {
  color: var(--color-white);
  text-decoration: none;
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 2px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 3px;
  margin-left: 8px;
  transition: opacity 0.2s;
}
.site-header__lang:hover {
  opacity: 0.7;
}

/* --- Album Gallery --- */
.album-gallery {
  padding: 80px var(--content-padding);
  max-width: var(--page-max);
  margin: 0 auto;
}

.album-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.album-gallery__item {
  display: block;
  overflow: hidden;
  aspect-ratio: 3/2;
  cursor: pointer;
}

.album-gallery__item img,
.album-gallery__item picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.album-gallery__item:hover img,
.album-gallery__item:hover picture img {
  transform: scale(1.05);
}

/* --- Contact Form Feedback --- */
.contact__success {
  color: #388e3c;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: var(--fw-medium);
}
.contact__error {
  color: #d32f2f;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: var(--fw-medium);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  font-weight: 300;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  font-weight: 200;
}
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
