/* =========================================================
   Dobrze się składa… — pracownia stolarska
   Kolorystyka: głęboka oliwka + ciepły krem + drewno
   ========================================================= */
:root {
  --olive: #4a4f3d;          /* główna zieleń (sekcje ciemne) */
  --olive-deep: #3a3e30;     /* stopka / najciemniejsze tło */
  --cream: #efebe3;          /* jasne sekcje */
  --cream-2: #e6e1d6;        /* alternatywne jasne tło */
  --wood: #a8784a;           /* akcent drewna */
  --ink: #2b2d24;            /* tekst na jasnym */
  --ink-soft: #5d6052;       /* tekst drugorzędny */
  --on-dark: #f3efe6;        /* tekst na oliwce */
  --on-dark-soft: #c9c7b8;
  --line-light: rgba(43, 45, 36, .18);
  --line-dark: rgba(243, 239, 230, .25);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typografia ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 1.1rem;
}

.lead { font-size: 1.05rem; max-width: 46ch; }

/* ---------- Pola do wypełnienia (placeholdery) ----------
   Każde miejsce na tekst ma klasę .ph — usuń klasę,
   gdy wstawisz docelową treść. */
.ph {
  border: 1px dashed currentColor;
  border-radius: 4px;
  padding: .55em .8em;
  opacity: .6;
  font-style: italic;
}
.ph + .ph { margin-top: .6rem; }
.ph-img {
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 12px, rgba(0,0,0,.08) 12px 24px);
  border: 1px dashed var(--line-light);
  display: grid; place-items: center;
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
  aspect-ratio: 4 / 3;
}
.dark .ph-img {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, rgba(255,255,255,.08) 12px 24px);
  border-color: var(--line-dark);
  color: var(--on-dark-soft);
}

/* ---------- Przyciski / linki ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding: .95rem 1.6rem;
  border: 1px solid currentColor;
  transition: background .25s, color .25s;
}
.btn::after { content: "→"; letter-spacing: 0; transition: transform .25s; }
.btn:hover::after { transform: translateX(4px); }
.btn-light { color: var(--on-dark); }
.btn-light:hover { background: var(--on-dark); color: var(--olive); }
.btn-dark { color: var(--ink); }
.btn-dark:hover { background: var(--olive); border-color: var(--olive); color: var(--on-dark); }
.btn-solid { background: var(--olive); border-color: var(--olive); color: var(--on-dark); }
.btn-solid:hover { background: var(--olive-deep); }

/* ---------- Nawigacja ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  color: var(--on-dark);
}
.nav.solid { position: sticky; background: var(--olive); }
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.4rem; padding-bottom: 1.4rem;
}
.brand { line-height: 1.15; }
.brand strong {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: 1.45rem; letter-spacing: .01em;
}
.brand span {
  font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; opacity: .7;
}
.menu { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.menu a {
  font-size: .76rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.menu a:hover, .menu a[aria-current="page"] { border-color: currentColor; }
.menu .btn { padding: .65rem 1.1rem; font-size: .7rem; }
.menu .btn:hover { border-color: var(--on-dark); }
.burger {
  display: none; background: none; border: 0; color: inherit; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 8px; right: 8px; height: 1.5px; background: currentColor; content: "";
}
.burger span { top: 19px; }
.burger span::before { top: -7px; left: 0; right: 0; }
.burger span::after { top: 7px; left: 0; right: 0; }

/* ---------- HERO (strona główna) ---------- */
.hero {
  position: relative; min-height: min(92vh, 820px);
  display: flex; align-items: flex-end;
  color: var(--on-dark);
  background: var(--olive-deep) url("assets/hero-kuchnia.jpg") center 60% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(46,50,37,.94) 0%, rgba(58,62,48,.82) 32%, rgba(58,62,48,.25) 62%, rgba(58,62,48,0) 80%),
    linear-gradient(0deg, rgba(46,50,37,.55) 0%, rgba(46,50,37,0) 35%);
}
.hero .wrap { position: relative; width: 100%; padding-top: 9rem; padding-bottom: 4.5rem; }
.hero-text { max-width: 640px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
.hero h1 { margin-bottom: 1.2rem; }
.hero .tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.4rem; color: #e3d3b8;
}
.hero .lead { margin-bottom: 2rem; color: var(--on-dark-soft); }
.hero-count {
  display: flex; align-items: center; gap: 1rem; margin-top: 3rem;
  font-size: .72rem; letter-spacing: .2em; opacity: .7;
}
.hero-count::after { content: ""; width: 110px; height: 1px; background: currentColor; }

/* ---------- Sekcje ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.light { background: var(--cream); color: var(--ink); }
.light-2 { background: var(--cream-2); color: var(--ink); }
.dark { background: var(--olive); color: var(--on-dark); }
.darker { background: var(--olive-deep); color: var(--on-dark); }

.sec-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.sec-head h2 { max-width: 14ch; }

/* 01 — Dlaczego my */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-light); }
.why-item { padding: 2rem 1.6rem 0 0; }
.why-item + .why-item { padding-left: 1.6rem; border-left: 1px solid var(--line-light); }
.why-item .num { font-family: var(--serif); font-size: 2.4rem; color: var(--wood); line-height: 1; margin-bottom: 1rem; }
.why-item h3 { margin-bottom: .7rem; }
.about-page h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: .4rem; }
.about-page { min-height: 60vh; }

/* 02 — O mnie (bez zdjęcia: nagłówek lewo, tekst prawo) */
.about { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.about h2 { margin-bottom: .4rem; }
.about-name { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--wood); }
.about-head .btn { margin-top: 2rem; }
.about .body { font-size: 1.02rem; }
.about .body > * + * { margin-top: 1.1rem; }

/* 03 — Oferta (4 kolumny tekstowe) */
.offer-intro h2 { margin-bottom: 1.2rem; }
.offer-intro p { color: var(--on-dark-soft); margin-bottom: 1.8rem; max-width: 52ch; }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.offer-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; margin-bottom: .2rem; }
.offer-card h3 { font-size: 1.45rem; margin: 1.1rem 0 .7rem; }
.offer-card p { font-size: .92rem; color: var(--on-dark-soft); }

/* 04 — CTA do formularza */
.cta { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.cta h2 { margin-bottom: .6rem; }
.cta p { color: var(--on-dark-soft); margin-bottom: 1.8rem; max-width: 44ch; }

/* ---------- Nagłówek podstron ---------- */
.page-head { padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-head h1 { margin-bottom: 1rem; }

/* ---------- Portfolio ---------- */
.banner {
  position: relative; min-height: min(62vh, 560px);
  display: flex; align-items: flex-end; color: var(--on-dark);
  background: var(--olive-deep) url("assets/realizacje-baner.jpg") center 55% / cover no-repeat;
}
.banner::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(46,50,37,.85) 0%, rgba(46,50,37,.25) 55%, rgba(46,50,37,.45) 100%); }
.banner .wrap { position: relative; width: 100%; padding-top: 8rem; padding-bottom: 3.5rem; }
.banner h1 { font-size: clamp(3rem, 8vw, 6rem); }
.gallery-title { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.masonry { columns: 3; column-gap: 1.2rem; }
.m-item { break-inside: avoid; margin-bottom: 1.2rem; }
.m-item img { width: 100%; height: auto; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-info dl > div { padding: 1.3rem 0; border-top: 1px solid var(--line-light); }
.contact-info dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; opacity: .65; margin-bottom: .3rem; }
.contact-info dd { font-family: var(--serif); font-size: 1.4rem; overflow-wrap: anywhere; }
.contact-info dd a:hover { color: var(--wood); }
.contact-note { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line-light); color: var(--ink-soft); }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
form label { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin-bottom: .45rem; }
form .field { margin-bottom: 1.4rem; }
form input, form select, form textarea {
  width: 100%; font: 300 1rem var(--sans); color: var(--ink);
  padding: .85rem 1rem; background: #f7f4ee; border: 1px solid var(--line-light); border-radius: 0;
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--olive); outline-offset: -1px; }
form textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; gap: .7rem; font-size: .82rem; color: var(--ink-soft); margin-bottom: 1.6rem; }
.consent input { width: auto; margin-top: .3rem; }
.form-status { margin-top: 1rem; font-size: .9rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- Stopka ---------- */
.footer { background: var(--olive-deep); color: var(--on-dark-soft); padding: 3.5rem 0 2rem; font-size: .85rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark); }
.footer .brand { color: var(--on-dark); margin-bottom: .8rem; }
.footer h4 { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--on-dark); margin-bottom: .9rem; }
.footer ul { list-style: none; }
.footer li + li { margin-top: .4rem; }
.footer a:hover { color: var(--on-dark); }
.footer .legal { padding-top: 1.5rem; font-size: .75rem; opacity: .7; }

/* ---------- Animacja pojawiania się ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsywność ---------- */
@media (max-width: 1000px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { row-gap: 2.4rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .why-item { padding-bottom: 2rem; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.2rem;
    background: var(--olive-deep); padding: 1.5rem var(--gutter) 2rem;
    display: none;
  }
  .menu.open { display: flex; }
  .sec-head, .about, .cta, .contact { grid-template-columns: 1fr; }
  .sec-head { gap: 1rem; }
  .masonry { columns: 2; }
  .footer .cols { grid-template-columns: 1fr; }
  .hero::before {
    background: linear-gradient(0deg, rgba(46,50,37,.95) 0%, rgba(58,62,48,.8) 45%, rgba(58,62,48,.35) 100%);
  }
}
@media (max-width: 560px) {
  .why-grid, .offer-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .why-item, .why-item + .why-item { padding-left: 0; border-left: 0; }
  form .row { grid-template-columns: 1fr; }
}

/* Placeholdery w nagłówkach — mniejsze, żeby nie rozpychały układu (po wstawieniu tekstu usuń klasę .ph) */
h2.ph { font-size: 1.7rem; max-width: 22ch; }
h3.ph { font-size: 1.1rem; }
form label.consent { font-size: .82rem; letter-spacing: 0; text-transform: none; font-weight: 300; }

.m-item img { display: block; width: 100%; height: auto; background: var(--cream-2); }

/* Telefon: pasek z nazwą na zielonym tle, żeby nie zlewał się ze zdjęciem */
@media (max-width: 820px) {
  .nav { position: relative; background: var(--olive); }
  .hero { min-height: auto; }
  .hero .wrap { padding-top: 3.5rem; }
  .banner { min-height: 42vh; }
  .banner .wrap { padding-top: 4rem; }
}
@media (max-width: 560px) { .offer-card img { aspect-ratio: 4 / 3; } }

/* ---------- Galeria: powiększanie zdjęć ---------- */
.masonry img { cursor: zoom-in; transition: opacity .25s; }
.masonry img:hover { opacity: .88; }
.masonry img:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.lb-lock, .lb-lock body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(30, 32, 25, .96);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 72px; overflow: hidden; }
.lb-img {
  max-width: 100%; max-height: 100%; object-fit: contain; display: block;
  cursor: zoom-in; transition: transform .3s ease; user-select: none; -webkit-user-drag: none;
}
.lightbox.zoomed .lb-img { transform: scale(2.2); cursor: zoom-out; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--on-dark);
  font: 300 2.6rem/1 var(--serif); cursor: pointer; padding: 12px 18px; opacity: .8; z-index: 2;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lb-close { top: 10px; right: 12px; font-size: 2.4rem !important; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 3.4rem !important; }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 3.4rem !important; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--on-dark-soft); font-size: .78rem; letter-spacing: .2em; }
@media (max-width: 560px) {
  .lb-stage { padding: 56px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 6px; transform: none; font-size: 2.8rem !important; }
}

/* Telefon / tablet: galeria jako równe kwadraty (całe zdjęcie po kliknięciu) */
@media (max-width: 820px) {
  .masonry { columns: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .m-item { margin: 0; }
  .m-item img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
  .masonry img:hover { opacity: 1; }
}
