/* ============================================================
   Visual Poet Fotografia — visualpoet.pl
   Czysty CSS, mobile-first, bez frameworków.
   Paleta: ciepłe złoto zachodów + głęboka czerń + kremowa biel
   ============================================================ */

:root {
  --ink: #1a1611;          /* głęboka, ciepła czerń */
  --ink-soft: #2b241c;
  --cream: #faf6ef;        /* kremowa biel */
  --cream-dark: #f1e9dc;
  --gold: #b98a4d;         /* ciepłe złoto */
  --gold-light: #d9ab6f;
  --gold-pale: #e9d5b5;
  --muted: #6f6457;        /* przygaszony brąz do tekstu pomocniczego */
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Jost", "Segoe UI", sans-serif;
  --shadow: 0 18px 45px -18px rgba(26, 22, 17, .35);
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* wysokość paska nawigacji */
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* height:auto — bez tego atrybuty width/height usztywniają wysokość i psują proporcje */
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

a { color: var(--gold); }

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  padding: .85rem 2.1rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  transition: background .3s, color .3s, border-color .3s, transform .3s;
  cursor: pointer;
}
.btn-solid { background: var(--gold); color: #fff; }
.btn-solid:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(250, 246, 239, .7); }
.btn-ghost:hover { background: rgba(250, 246, 239, .14); border-color: var(--cream); transform: translateY(-2px); }
.btn-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-small { padding: .55rem 1.4rem; font-size: .8rem; }

/* ---------- Nawigacja ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s, box-shadow .35s;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
/* Logo: inline SVG, kolor sterowany przez currentColor */
.logo-mark, .hero-logo, .footer-logo { fill: currentColor; display: block; }
.nav-logo { display: block; color: var(--cream); transition: color .3s; }
.nav-logo .logo-mark { height: 38px; width: auto; aspect-ratio: 771.87 / 290.89; }

.site-nav ul {
  display: flex;
  gap: 1.9rem;
  list-style: none;
}
.site-nav a {
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  transition: color .25s;
}
.site-nav a:hover { color: var(--gold-light); }

.site-header.scrolled { background: rgba(250, 246, 239, .96); box-shadow: 0 4px 24px -12px rgba(26,22,17,.25); }
.site-header.scrolled .site-nav a { color: var(--ink); }
.site-header.scrolled .site-nav a:hover { color: var(--gold); }
.site-header.scrolled .nav-logo { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform .3s, opacity .3s, background .3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.site-header.scrolled .nav-toggle span,
.site-header.scrolled .nav-toggle span::before,
.site-header.scrolled .nav-toggle span::after { background: var(--ink); }
.nav-open .nav-toggle span { background: transparent !important; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); background: var(--cream); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); background: var(--cream); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(26, 22, 17, .97);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .site-nav ul { flex-direction: column; text-align: center; gap: 1.6rem; }
  .site-nav a { color: var(--cream) !important; font-size: 1.05rem; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open .nav-toggle span::before,
  .nav-open .nav-toggle span::after { background: var(--cream) !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream);
  isolation: isolate;
  padding: 6rem 1.25rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(26,22,17,.55) 0%, rgba(26,22,17,.35) 45%, rgba(26,22,17,.72) 100%);
}
.hero-logo {
  width: min(440px, 78vw);
  height: auto;
  aspect-ratio: 771.87 / 290.89;
  margin-inline: auto;
  color: var(--cream);
  filter: drop-shadow(0 3px 22px rgba(0, 0, 0, .5));
}
.hero-tagline {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  letter-spacing: .02em;
  max-width: 21ch;
  margin: 1.6rem auto 2.4rem;
  text-shadow: 0 2px 22px rgba(0,0,0,.45);
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  color: rgba(250,246,239,.8);
  font-size: 1.5rem;
  text-decoration: none;
  animation: floaty 2.4s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(8px); } }

/* ---------- Sekcje ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--cream-dark); }
.section-dark { background: var(--ink); color: var(--cream); }

.section-head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head .script {
  font-family: var(--script);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  color: var(--gold);
  display: block;
  margin-bottom: .3rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  letter-spacing: .02em;
}
.section-head .lead {
  max-width: 56ch;
  margin: 1rem auto 0;
  color: var(--muted);
}
.section-dark .section-head .lead { color: var(--gold-pale); }

/* ---------- O mnie ---------- */
.about-grid {
  display: grid;
  gap: 2.8rem;
  align-items: center;
}
.about-photo {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
}
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo::before {
  content: "";
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.2rem; }
.about-text p { margin-bottom: 1.1rem; }
.about-text .signature {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--gold);
  margin: .4rem 0 1.4rem;
}
@media (min-width: 820px) {
  .about-grid { grid-template-columns: 5fr 6fr; gap: 4.5rem; }
}

/* ---------- Oferta ---------- */
.offer-group-title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 3rem 0 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.offer-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold-pale), transparent);
}
.offer-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.offer-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 32px -18px rgba(26,22,17,.28);
  display: flex;
  flex-direction: column;
  transition: transform .35s, box-shadow .35s;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.offer-card .offer-img {
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
}
.offer-card .offer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.offer-card:hover .offer-img img { transform: scale(1.05); }
.offer-card .offer-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.offer-card h4 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.offer-card p { font-size: .95rem; color: var(--muted); flex: 1; margin-bottom: 1.2rem; }
.offer-note {
  text-align: center;
  margin-top: 3rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}
.offer-note a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 2.4rem;
}
.filter-btn {
  background: none;
  border: 1px solid var(--gold-pale);
  border-radius: 999px;
  padding: .45rem 1.25rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all .3s;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }

.gallery {
  columns: 2;
  column-gap: 1rem;
}
@media (min-width: 700px)  { .gallery { columns: 3; } }
@media (min-width: 1024px) { .gallery { columns: 4; } }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  transition: transform .55s ease, filter .55s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,22,17,.45), transparent 55%);
  opacity: 0;
  transition: opacity .4s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item.hidden { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 17, 13, .96);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  user-select: none;
}
.lb-btn {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(250,246,239,.75);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: .8rem;
  transition: color .25s, transform .25s;
  z-index: 2;
}
.lb-btn:hover { color: var(--gold-light); }
.lb-close { top: .8rem; right: 1rem; font-size: 2.6rem; }
.lb-prev { left: .4rem; top: 50%; translate: 0 -50%; }
.lb-next { right: .4rem; top: 50%; translate: 0 -50%; }
.lb-counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  translate: -50% 0;
  color: rgba(250,246,239,.6);
  font-size: .85rem;
  letter-spacing: .18em;
}
@media (max-width: 700px) {
  .lb-prev, .lb-next { display: none; } /* na mobile: swipe */
}

/* ---------- Współpraca (kroki) ---------- */
.steps {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  counter-reset: step;
}
.step { text-align: center; padding: 0 .6rem; }
.step .num {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--gold-light);
  display: block;
  line-height: 1;
  margin-bottom: .8rem;
}
.step h4 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.step p { font-size: .95rem; color: var(--gold-pale); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-list details {
  border-bottom: 1px solid var(--gold-pale);
  padding: .35rem 0;
}
.faq-list summary {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  padding: .9rem 2.2rem .9rem .2rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color .25s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: .4rem;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--gold);
  transition: transform .3s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--gold); }
.faq-list details p {
  padding: 0 .2rem 1.2rem;
  color: var(--muted);
  max-width: 65ch;
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 5fr 6fr; gap: 4.5rem; align-items: start; }
}
.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.contact-info p { margin-bottom: 1.4rem; color: var(--muted); }
.contact-lines { list-style: none; margin-bottom: 1.8rem; }
.contact-lines li {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding: .45rem 0;
  font-size: 1.05rem;
}
.contact-lines .ico { color: var(--gold); width: 1.4rem; text-align: center; flex: none; }
.contact-lines a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold-pale); transition: border-color .25s, color .25s; }
.contact-lines a:hover { color: var(--gold); border-color: var(--gold); }

.socials { display: flex; gap: .9rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
  color: var(--ink);
  transition: all .3s;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }

.contact-form {
  background: #fff;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1.15rem; }
.form-row label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  transition: border-color .25s, box-shadow .25s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 138, 77, .18);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-consent {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.3rem;
}
.form-consent input { margin-top: .3rem; accent-color: var(--gold); }
.contact-form .btn { width: 100%; }

/* ---------- Stopka ---------- */
.site-footer {
  background: var(--ink);
  color: var(--gold-pale);
  padding: 3.2rem 0 2.2rem;
  text-align: center;
}
.site-footer .footer-logo {
  width: 210px;
  height: auto;
  aspect-ratio: 771.87 / 290.89;
  margin: 0 auto 1.4rem;
  color: var(--gold-pale);
  opacity: .92;
}
.site-footer .socials { justify-content: center; margin-bottom: 1.6rem; }
.site-footer .socials a { color: var(--gold-pale); border-color: rgba(233, 213, 181, .35); }
.site-footer .socials a:hover { color: #fff; }
.site-footer p { font-size: .88rem; }
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { margin-top: .5rem; font-size: .85rem; }

/* ---------- Fade-in przy scrollu ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
}

/* ---------- Podstrona: polityka prywatności ---------- */
.legal {
  max-width: 760px;
  margin-inline: auto;
  padding: 8rem 1.25rem 4rem;
}
.legal h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 1.6rem; }
.legal h2 { font-size: 1.35rem; margin: 2rem 0 .7rem; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: .8rem; }
.legal ul { padding-left: 1.3rem; }
.legal .back { display: inline-block; margin-top: 2.5rem; }
