/* =========================================================
   Stolarz Piotr — nowa strona główna (szkic)
   Paleta i typografia oparte na realnych zdjęciach drewna,
   nie na domyślnych ustawieniach szablonu.

   Google Fonts wczytywane przez <link> + preconnect w <head>
   (index.html), nie przez @import, dla szybszego startu ładowania.
   ========================================================= */

:root {
  /* Neutralne — ciepła kość słoniowa zamiast czystej bieli */
  --bg: #FAF5EC;
  --bg-alt: #F1E6D3;
  --bg-alt-2: #EAD9BE;

  /* Ciemny neutral — głęboki orzech, zamiast czystej czerni */
  --ink: #2A2016;
  --ink-soft: #4A3B2A;
  --ink-muted: #6E5D49;

  /* Drewno — do linii, obramowań, drobnych akcentów */
  --wood: #8B6239;
  --wood-light: #C9A876;

  /* Jedyny akcent — przypalony bursztyn, jak bejca na drewnie. Używany oszczędnie. */
  --accent: #BB5E2C;
  --accent-dark: #93481F;
  --accent-tint: #F3DCC9;

  --line: #E2D2B4;
  --white: #FFFDF9;

  --radius: 3px;
  --radius-lg: 6px;

  --shadow-soft: 0 12px 34px -18px rgba(42, 32, 22, 0.45);
  --shadow-card: 0 18px 40px -22px rgba(42, 32, 22, 0.35);

  --font-head: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 0.4em;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}

.section--tight { padding: 72px 0; }

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--ink);
  color: var(--bg);
}
.section--dark p { color: #D9CBB6; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 0 52px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 { font-size: clamp(30px, 3.4vw, 40px); }
.section-head p { font-size: 18px; margin-bottom: 0; }

/* Sticky header ucinałby górę sekcji po kliknięciu w link z menu bez tego */
#oferta, #o-mnie, #realizacje, #kontakt {
  scroll-margin-top: 100px;
}

/* ---------- Buttony ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn svg { flex-shrink: 0; }

.btn--accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255,253,249,0.55);
  color: var(--white);
}
.btn--ghost-light:hover { background: rgba(255,253,249,0.12); border-color: var(--white); }

.btn--outline {
  background: transparent;
  border-color: var(--wood-light);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
  position: relative;
}

.logo {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.logo span {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__links a:hover { color: var(--accent); border-color: var(--accent); }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: var(--white);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: background .15s ease, transform .15s ease;
}
.header__phone:hover { background: var(--accent-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(20,14,8,0.92) 0%, rgba(20,14,8,0.72) 26%, rgba(20,14,8,0.28) 58%, rgba(20,14,8,0.42) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 0 72px;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg-alt-2);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--wood-light);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 5.6vw, 60px);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--wood-light);
  font-weight: 500;
}

.hero p.lead {
  color: #E9DFCE;
  font-size: 19px;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Pasek zaufania (proof) ---------- */
.trust {
  background: var(--ink);
  color: var(--bg);
  padding: 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trust__item {
  padding: 44px 36px;
  border-right: 1px solid rgba(255,253,249,0.12);
  display: flex;
  align-items: center;
  gap: 18px;
}
.trust__item:last-child { border-right: none; }

.trust__num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 600;
  color: var(--wood-light);
  line-height: 1;
  flex-shrink: 0;
}
.trust__num--word {
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  max-width: 130px;
}
.trust__text {
  font-size: 14.5px;
  color: #CBBBA1;
  line-height: 1.45;
}
.trust__text strong {
  display: block;
  color: var(--white);
  font-size: 15.5px;
  margin-bottom: 2px;
}

/* drugi wiersz paska zaufania — zasady/podejście, celowo inny układ niż
   trust__grid (mniejsze, bez wielkich liczb), żeby nie powielać identycznej
   siatki kart */
.trust__principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,253,249,0.12);
}
.trust__principle {
  display: flex;
  gap: 14px;
  padding: 30px 36px;
  border-right: 1px solid rgba(255,253,249,0.12);
}
.trust__principle:last-child { border-right: none; }
.trust__principle-mark {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.trust__principle-mark svg {
  display: block;
  width: 21px;
  height: 21px;
}
.trust__principle strong {
  display: block;
  color: var(--white);
  font-size: 15.5px;
  margin-bottom: 4px;
}
.trust__principle p {
  font-size: 14px;
  color: #CBBBA1;
  line-height: 1.5;
  margin: 0;
}

/* dostawcy */
.suppliers {
  padding: 34px 0 46px;
  border-top: 1px solid rgba(255,253,249,0.1);
}
.suppliers__label {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9C8A72;
  margin-bottom: 26px;
}
.suppliers__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px 46px;
}
.supplier {
  display: inline-flex;
  align-items: center;
}

/* wszystkie 7 plików logo są przygotowane jako biała grafika na
   przezroczystym tle (patrz img/logos/), więc bez dodatkowego filtra CSS */
.supplier__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}
.supplier__mark img {
  height: 100%;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity .15s ease;
}
.supplier:hover .supplier__mark img { opacity: 1; }

/* ---------- O warsztacie (asymetryczna sekcja) ---------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  align-items: stretch;
}
.about__media {
  position: relative;
  min-height: 480px;
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.about__body {
  padding: 88px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about__body h2 { font-size: clamp(28px, 3vw, 36px); }
.about__body p { font-size: 16.5px; }

.about__signature {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}
.about__signature-name {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
}
.about__signature-role {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ---------- Oferta ---------- */
.offer {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.offer__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 110px;
}
.offer__media img { width: 100%; height: 100%; object-fit: cover; }

.offer__list {
  display: flex;
  flex-direction: column;
}
.offer__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.offer__row:first-child { padding-top: 0; }
.offer__row:last-child { border-bottom: none; }

.offer__index {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 26px;
  color: var(--wood-light);
  line-height: 1;
}
.offer__row h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.offer__row p { font-size: 15.5px; margin-bottom: 0; }

/* ---------- Realizacje (galeria) ---------- */
.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.gallery__filter {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.gallery__filter:hover { border-color: var(--wood-light); color: var(--ink); }
.gallery__filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery__more {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--bg-alt-2);
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
}
.gallery__item[hidden] { display: none; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.06); }

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(24,17,10,0.72) 0%, rgba(24,17,10,0) 42%);
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }

.gallery__tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1;
}
.gallery__item:hover .gallery__tag,
.gallery__item:focus-visible .gallery__tag { opacity: 1; transform: translateY(0); }

.gallery__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(20, 14, 8, 0.94);
}
.lightbox[hidden] { display: none; }

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.lightbox__figure figcaption {
  margin-top: 16px;
  color: var(--bg-alt-2);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}
.lightbox__close:hover { color: var(--wood-light); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,253,249,0.1);
  border: 1px solid rgba(255,253,249,0.3);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.lightbox__nav:hover { background: rgba(255,253,249,0.22); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 86px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(187,94,44,0.20), transparent 70%);
}
.cta-band__inner { position: relative; max-width: 620px; margin: 0 auto; }
.cta-band h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 38px); }
.cta-band p { color: #D9CBB6; font-size: 17.5px; }
.cta-band .hero__cta { justify-content: center; margin-top: 30px; }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact__info h2 { font-size: clamp(28px, 3vw, 36px); }

.contact__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__list strong { display: block; font-size: 15.5px; color: var(--ink); }
.contact__list span, .contact__list a { font-size: 15.5px; color: var(--ink-muted); }
.contact__list a:hover { color: var(--accent); }

.contact__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.contact__form h3 { font-size: 20px; margin-bottom: 6px; }
.contact__form .form-note { font-size: 14px; color: var(--ink-muted); margin-bottom: 26px; }

.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--wood-light);
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--accent-dark);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { color: #9A3B2E; }

/* Honeypot antyspamowy — schowany wizualnie, ale obecny w DOM (nie
   `display:none`/`hidden`, żeby proste boty formularzowe go wciąż wypełniały). */
.field--hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #C9BBA4;
  padding: 56px 0 28px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,253,249,0.12);
}
.footer__brand .logo { color: var(--white); }
.footer__brand p { max-width: 320px; margin-top: 14px; font-size: 14.5px; color: #B4A38A; }

.footer__cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8E7B62;
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a, .footer__col span { font-size: 15px; color: #D9CBB6; }
.footer__col a:hover { color: var(--wood-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 13px;
  color: #7A6A54;
}

/* ---------- Responsywność ---------- */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
  .about__media { min-height: 320px; }
  .about__body { padding: 56px 36px; }

  .offer { grid-template-columns: 1fr; }
  .offer__media { position: relative; top: 0; height: 340px; }

  .contact { grid-template-columns: 1fr; }

  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { border-right: none; border-bottom: 1px solid rgba(255,253,249,0.12); }
  .trust__item:last-child { border-bottom: none; }

  .trust__principles { grid-template-columns: 1fr; }
  .trust__principle { border-right: none; border-bottom: 1px solid rgba(255,253,249,0.12); }
  .trust__principle:last-child { border-bottom: none; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 18px;
  }
  .nav__links.is-open li { border-top: 1px solid var(--line); }
  .nav__links.is-open li:first-child { border-top: none; }
  .nav__links.is-open a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__tag { opacity: 1; transform: none; }
  .gallery__item::after { opacity: 0.55; }

  .lightbox { padding: 20px; }
  .lightbox__nav { width: 40px; height: 40px; font-size: 22px; }
  .lightbox__close { top: 10px; right: 12px; font-size: 30px; }
}

@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .section { padding: 68px 0; }
  .header__inner { padding: 14px 0; }
  .header__phone span.phone-label { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px; }
  .footer__top { flex-direction: column; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}