/* ═══════════════════════════════════════════════════════════════
   NATALIA — @natki_makeup
   Minimalistyczny luksus · złamana biel / beż / taupe / espresso
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ivory:    #F6F2EC;   /* tło — złamana biel        */
  --sand:     #EAE2D6;   /* jaśniejszy beż / karty    */
  --taupe:    #A8967F;   /* akcent taupe              */
  --clay:     #7C6A56;   /* ciemniejszy taupe (tekst pomocniczy) */
  --espresso: #2B221B;   /* głęboki matowy brąz-czerń */
  --line:     rgba(43, 34, 27, 0.14);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --pad: clamp(1.25rem, 5vw, 6rem);
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--ivory);
  color: var(--espresso);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }

::selection { background: var(--espresso); color: var(--ivory); }

/* ── KURTYNA WEJŚCIOWA ─────────────────────────────────────────── */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.curtain__logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 12vw, 9rem);
  color: var(--ivory);
  opacity: 0;
}
/* Bez JS kurtyna po prostu znika */
html:not(.js) .curtain { display: none; }

/* ── NAWIGACJA ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  mix-blend-mode: normal;
  background: linear-gradient(to bottom, rgba(246,242,236,0.92), rgba(246,242,236,0));
  backdrop-filter: blur(2px);
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav__dot { color: var(--taupe); }
.nav__links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav__links a { position: relative; padding: 0.2rem 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--espresso);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--espresso);
  border-radius: 100px;
  padding: 0.55rem 1.35rem;
  transition: background 0.35s ease, color 0.35s ease;
}
.nav__cta:hover { background: var(--espresso); color: var(--ivory); }

@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* ── PRZYCISKI ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 1.05rem 1.9rem;
  transition: gap 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.btn svg { width: 1.05rem; height: 1.05rem; }
.btn:hover { gap: 1.3rem; }

.btn--dark  { background: var(--espresso); color: var(--ivory); }
.btn--dark:hover { background: var(--clay); }

.btn--light { background: var(--ivory); color: var(--espresso); }
.btn--light:hover { background: var(--sand); }

.btn--big { padding: 1.25rem 2.4rem; }

/* ── ETYKIETY SEKCJI ───────────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-label--light { color: var(--taupe); }

/* ── LINIE NAGŁÓWKÓW (maski dla text-reveal) ───────────────────── */
.line {
  display: block;
  overflow: hidden;          /* maska — tekst „wyjeżdża" spod niej */
  padding-bottom: 0.08em;    /* miejsce na ogonki liter (g, j, y)  */
}
.line--italic em { color: var(--clay); }

/* ═══════════════════════════════════════════════════════════════
   1. HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6rem, 12vh, 9rem) var(--pad) clamp(3rem, 8vh, 5rem);
  position: relative;
}
.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.4rem, 13.5vw, 11.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: none;
}
.hero__title .line--italic {
  font-style: italic;
  font-size: 0.62em;
  margin-top: 0.06em;
}
.hero__bottom {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero__sub {
  max-width: 30rem;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: var(--clay);
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clay);
}
.hero__scroll i {
  width: 1px;
  height: 3.2rem;
  background: var(--clay);
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 640px) {
  .hero__scroll { display: none; }
}

/* ── MARQUEE ───────────────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: var(--clay);
  padding-right: 0.5em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}

/* ═══════════════════════════════════════════════════════════════
   2. O MNIE
   ═══════════════════════════════════════════════════════════════ */
.about {
  padding: clamp(5rem, 12vw, 10rem) var(--pad);
}
.about__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.32;
  max-width: 56rem;
}
.about__text em { color: var(--taupe); }
.about__text .w {                  /* pojedyncze słowa animowane przy scrollu */
  display: inline;
  opacity: 0.18;
}
.about__facts {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.fact__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  color: var(--taupe);
  margin-bottom: 0.7rem;
}
.fact__label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--clay);
  max-width: 12rem;
  display: block;
}
@media (max-width: 640px) {
  .about__facts { grid-template-columns: 1fr; gap: 2.4rem; }
}

/* ═══════════════════════════════════════════════════════════════
   3. GALERIA
   ═══════════════════════════════════════════════════════════════ */
.gallery {
  padding: clamp(4rem, 10vw, 9rem) var(--pad);
  background: var(--sand);
}
.gallery__title,
.offer__title,
.footer__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.02;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.gallery__title .line--italic,
.offer__title .line--italic,
.footer__title .line--italic { font-style: italic; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3.5vw, 3rem);
}
/* co drugie zdjęcie zsunięte w dół — rytm edytorski */
.gallery__grid figure:nth-child(even) {
  transform: translateY(clamp(2rem, 6vw, 5rem));
}
.gallery__grid figure {
  overflow: hidden;          /* konieczne dla efektu parallax */
  border-radius: 2px;
  background: var(--ivory);
  aspect-ratio: 3 / 4;
}
.gallery__grid img {
  width: 100%;
  height: 118%;              /* zapas na ruch parallax */
  object-fit: cover;
  will-change: transform;
}
/* eleganckie kafelki-zaślepki, gdy folder /portfolio jest pusty */
.gallery__grid .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--taupe);
  background: linear-gradient(160deg, var(--ivory) 0%, #EFE8DD 100%);
}
.gallery__more {
  margin-top: clamp(5rem, 10vw, 8rem);
  font-size: 0.9rem;
  color: var(--clay);
  text-align: center;
}
.gallery__more a {
  color: var(--espresso);
  border-bottom: 1px solid var(--espresso);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.gallery__more a:hover { color: var(--taupe); border-color: var(--taupe); }

@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__grid figure:nth-child(even) { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   4. OFERTA / CENNIK — minimalistyczna lista z hover-efektem
   ═══════════════════════════════════════════════════════════════ */
.offer {
  padding: clamp(5rem, 12vw, 10rem) var(--pad);
}
.offer__list {
  border-top: 1px solid var(--line);
}
.offer__item {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(0.5rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "head arrow"
    "desc arrow";
  column-gap: 2rem;
  cursor: pointer;
  transition: background 0.45s ease, padding-left 0.45s ease;
}
.offer__item:hover {
  background: var(--sand);
  padding-left: clamp(1.2rem, 3vw, 2.5rem);
}
.offer__head {
  grid-area: head;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.offer__head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.1;
}
.offer__price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--taupe);
  white-space: nowrap;
}
.offer__desc {
  grid-area: desc;
  margin-top: 0.8rem;
  max-width: 36rem;
  font-size: 0.92rem;
  color: var(--clay);
}
.offer__arrow {
  grid-area: arrow;
  align-self: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso);
  opacity: 0;
  transform: translateX(-0.6rem) rotate(-45deg);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}
.offer__arrow svg { width: 1.1rem; height: 1.1rem; }
.offer__item:hover .offer__arrow {
  opacity: 1;
  transform: translateX(0) rotate(-45deg);
  background: var(--espresso);
  color: var(--ivory);
  border-color: var(--espresso);
}
.offer__badge {
  position: absolute;
  top: 1rem;
  right: clamp(0.5rem, 2vw, 1.5rem);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--taupe);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
}
@media (max-width: 640px) {
  .offer__arrow { display: none; }
  .offer__item { grid-template-columns: 1fr; grid-template-areas: "head" "desc"; }
  .offer__badge { position: static; justify-self: start; margin-top: 1rem; display: inline-block; }
  .offer__item--featured { display: flex; flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   5. STOPKA / KONTAKT
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--espresso);
  color: var(--ivory);
  padding: clamp(5rem, 12vw, 9rem) var(--pad) 2rem;
  border-radius: 24px 24px 0 0;
}
.footer__title .line--italic em { color: var(--taupe); }
.footer__sub {
  max-width: 32rem;
  color: rgba(246, 242, 236, 0.72);
  font-size: 0.98rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer__socials {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(246, 242, 236, 0.85);
  transition: color 0.3s ease;
}
.social svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.social:hover { color: var(--taupe); }
.social:hover svg { transform: translateY(-3px) rotate(-6deg); }

.footer__bottom {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 242, 236, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(246, 242, 236, 0.55);
}
.footer__top { transition: color 0.3s ease; }
.footer__top:hover { color: var(--ivory); }

/* ── DOSTĘPNOŚĆ ────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--taupe);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
