/* JAMROZ, Usługi Remontowo-Budowlane Robert Jamroz | jamrozremonty.pl
   Kierunek wg .planning/sketches/jamroz-homepage-sketch.html */

/* Wartości marki pochodzą z brand-tokens.css, a ten plik tylko je mapuje
   na nazwy używane w komponentach. Kolorów NIE definiujemy tutaj od nowa. */
:root {
  --ink: var(--color-black);
  --ink-soft: #292929;
  --muted: var(--color-text-muted);
  --muted-light: #5d5c57;
  --paper: var(--color-page);
  --white: var(--color-surface);
  --line: var(--color-border);
  --line-soft: #e9e6df;
  --accent: var(--color-accent);
  --accent-dark: #6a5000;
  --accent-deep: #5f4800;
  --radius: var(--radius-sm);
  --maxw: 1240px;
  --pad: clamp(1.15rem, 4vw, 1.75rem);
  --gap: clamp(3.5rem, 8vw, 5.5rem);
  --font: var(--font-body);
  /* font-heading z brand-tokens to "Arial Black" nie istnieje na iOS/Androidzie,
     a fallback Impact jest waski i psuje naglowki. Stad wlasny stos systemowy. */
  --display: "Arial Black", "Helvetica Neue Bold", "Segoe UI Black", "Roboto Black",
             system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-weight: 900;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-variant-numeric: tabular-nums;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-dark); outline-offset: 3px;
}

h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: .94; letter-spacing: -.07em; }
h2 { font-size: clamp(2rem, 4.4vw, 2.65rem); letter-spacing: -.055em; line-height: 1.02; }
h3 { font-size: 1.25rem; letter-spacing: -.03em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.13rem); line-height: 1.6; max-width: 34rem; }

.page, .wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--gap); }
.eyebrow {
  color: var(--accent-dark); font-size: .75rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .15em; display: block; margin-bottom: .7rem;
}

/* ---------- nagłówek ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand .brand__mark { width: auto; height: 42px; border: 0; background: transparent; box-shadow: none; object-fit: contain; }
.brand__wordmark {
  color: var(--ink); font-family: var(--display); font-size: 1.62rem;
  font-weight: 900; letter-spacing: -.035em; line-height: 1;
}
.brand__sub { display: none; }

.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a {
  color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-cta, .nav .nav-cta:hover { background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .55rem .75rem; font-size: 1.1rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; }
  .nav {
    order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--line); padding-block: .4rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .8rem 0; font-size: .95rem; }
  .nav .nav-cta { text-align: center; margin-block: .5rem; }
  .site-header__inner { flex-wrap: wrap; padding-bottom: 0; }
}

/* ---------- pasek telefonu ---------- */
.callbar {
  display: none; position: fixed; inset: auto 0 0; z-index: 60;
  background: var(--ink); color: #fff; text-align: center;
  padding: .85rem 1rem; font-weight: 800; text-decoration: none; letter-spacing: .04em;
}
@media (max-width: 860px) { .callbar { display: block; } body { padding-bottom: 3.4rem; } }

/* ---------- przyciski ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.3rem; border: 1px solid var(--ink); border-radius: var(--radius);
  font-weight: 800; font-size: .88rem; text-decoration: none; cursor: pointer;
  background: transparent; color: var(--ink); font-family: var(--font);
  transition: background .16s ease, color .16s ease;
}
.button.primary { background: var(--ink); color: #fff; }
.button.primary:hover { background: var(--ink-soft); }
.button:hover { background: var(--ink); color: #fff; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.9rem; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr .95fr; gap: 3.75rem; align-items: center; padding-block: 3.9rem 4.5rem; }
.hero h1 { margin: .3em 0 .35em; max-width: 41rem; }
.hero-media { position: relative; overflow: hidden; background: var(--line); aspect-ratio: 4/3; border-radius: var(--radius); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption {
  position: absolute; left: 1.1rem; bottom: 1.05rem; color: #fff;
  font-size: .7rem; letter-spacing: .12em; font-weight: 800; text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 2.9rem 3rem; } }

/* ---------- nagłówki sekcji ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem; margin-bottom: 1.75rem; }
.section-head p { max-width: 22rem; margin: 0; color: var(--muted); }
@media (max-width: 760px) { .section-head { display: block; } .section-head p { margin-top: .75rem; } }

/* ---------- karty ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: .9rem; }
.card { background: var(--white); border: 1px solid var(--line-soft); padding: 1.6rem; display: flex; flex-direction: column; }
.card .number { color: var(--accent-dark); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.card h3 { margin: 2.4rem 0 .5rem; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }
a.card { text-decoration: none; transition: border-color .16s ease; }
a.card:hover { border-color: var(--ink); }
.card__more { margin-top: auto; padding-top: 1.1rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); }

/* ---------- pasy dowodowe ---------- */
.proof { display: grid; grid-template-columns: 1.1fr .9fr; gap: .9rem; margin-top: .9rem; }
.proof > div { background: var(--ink); color: #fff; padding: 2rem; min-height: 13rem; display: flex; flex-direction: column; justify-content: center; }
.proof .light { background: var(--accent); color: var(--ink); }
.proof strong { display: block; font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.06em; line-height: 1; margin-bottom: .6rem; }
.proof p { color: #ddd; margin: 0; max-width: 22rem; font-size: .93rem; }
.proof .light p { color: var(--ink); }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr; } }

/* ---------- galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--line-soft); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { padding: .7rem .85rem; font-size: .8rem; color: var(--muted); }

/* ---------- listy ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.ticks li { padding-left: 1.5rem; position: relative; color: var(--muted); }
.ticks li::before { content: "·"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 900; }

/* ---------- opinie ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .9rem; }
.quote { background: var(--white); border: 1px solid var(--line-soft); border-left: 3px solid var(--accent); padding: 1.4rem 1.5rem; }
.quote p { font-size: .95rem; margin-bottom: .8rem; }
.quote cite { font-style: normal; font-size: .8rem; color: var(--muted-light); letter-spacing: .04em; }

/* ---------- FAQ ---------- */
.faq > div { padding-block: 1.3rem; border-top: 1px solid var(--line); }
.faq h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.faq p { color: var(--muted); margin: 0; }

/* ---------- kontakt / formularz ---------- */
.contact-box { background: var(--white); border: 1px solid var(--line-soft); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form { display: grid; gap: .85rem; }
.form label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .35rem; }
.form input, .form textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
}
.form textarea { min-height: 7rem; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--ink); }
.form input:-webkit-autofill, .form textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 40rem var(--paper) inset;
  caret-color: var(--ink);
}
.form .consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.form .consent input { width: auto; flex: none; margin-top: .2rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .92rem; padding: .8rem .95rem; border-radius: var(--radius); display: none; }
.form__status.is-ok { display: block; background: #e7f3ea; color: #174d2b; border: 1px solid #8fc5a0; }
.form__status.is-err { display: block; background: #fbeaea; color: #762020; border: 1px solid #d99595; }

.contact-strip {
  background: var(--white); border: 1px solid var(--line-soft); padding: clamp(1.6rem, 4vw, 2.5rem);
  display: flex; justify-content: space-between; gap: 1.9rem; align-items: center; flex-wrap: wrap;
}
.contact-strip h2 { margin: 0; max-width: 36rem; }
.contact-strip .tel { font-family: var(--display); font-size: 1.7rem; letter-spacing: -.04em; text-decoration: none; display: block; }

/* ---------- stopka ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--gap); padding-block: 2.5rem 2rem; font-size: .88rem; color: var(--muted); }
.site-footer h4 { font-family: var(--font); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.9rem; }
.site-footer__bottom {
  margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; font-size: .78rem; color: var(--muted-light);
}

/* ---------- baner zgody ---------- */
.consent-bar {
  position: fixed; inset: auto 0 0; z-index: 90; background: var(--ink); color: #eee;
  padding: 1rem var(--pad); display: flex; flex-wrap: wrap; gap: .8rem 1.5rem;
  align-items: center; justify-content: space-between;
}
.consent-bar[hidden] { display: none; }
.consent-bar p { margin: 0; font-size: .82rem; max-width: 44rem; color: #ccc; }
.consent-bar a { color: #fff; }
.consent-bar__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.consent-bar .button { padding: .6rem 1rem; font-size: .8rem; border-color: #555; color: #fff; }
.consent-bar .button.primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
@media (max-width: 860px) { .consent-bar { bottom: 3.4rem; } }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--accent); color: var(--ink); padding: .6rem 1rem; }
.site-footer a, .prose a, .contact-box a:not(.button), .quote cite { text-decoration-thickness: .08em; text-underline-offset: .16em; }
.breadcrumb { font-size: .78rem; color: var(--muted-light); padding-top: 1.4rem; }
.breadcrumb a { text-decoration: none; }
.prose { max-width: 40rem; }
.prose h2 { margin-top: 2.2rem; }

/* ============================================================
   Warstwa jakości: bento, dotyk, wejścia sekcji
   Zasady wg taste-skill (wariancja 8 / ruch 6 / gęstość 4),
   przełożone na czysty CSS, bez frameworków.
   ============================================================ */

/* ---------- bento zamiast trzech równych kolumn ---------- */
@media (min-width: 900px) {
  .cards--bento { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: minmax(13rem, auto); grid-auto-flow: dense; }
  .cards--bento > :nth-child(1) { grid-row: span 2; }
  .cards--bento > :nth-child(1) h3 { font-size: 1.7rem; }
  .cards--bento > :nth-child(1) p { font-size: 1rem; max-width: 30ch; }
  .cards--bento > :nth-child(4) { grid-column: span 2; }
  /* bez tego ostatnia komorka w prawym dolnym rogu zostaje pusta */
  .cards--bento > :nth-child(6) { grid-column: span 2; }
  .cards--bento > :nth-child(1) .number { color: var(--accent-deep); }
}

/* ---------- dotyk: przycisk daje się wcisnąć ---------- */
.button, a.card, .nav-cta { transition: background .16s ease, color .16s ease, border-color .16s ease, transform .12s ease, box-shadow .22s cubic-bezier(.16,1,.3,1); }
.button:active, .nav-cta:active { transform: translateY(1px); }
a.card:active { transform: translateY(0); }

/* ---------- karta: cień w tonie tła, nie szary klej ---------- */
a.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -18px rgba(64, 54, 24, .38);
}
a.card .card__more { transition: gap .16s ease; }
a.card:hover .card__more { color: var(--ink); }

/* podkreślenie akcentem na krawędzi karty */
a.card { position: relative; overflow: hidden; }
a.card::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .32s cubic-bezier(.16,1,.3,1);
}
a.card:hover::after { right: 0; }

/* ---------- galeria: spokojne przybliżenie ---------- */
.gallery figure { overflow: hidden; }
.gallery img { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.gallery figure:hover img { transform: scale(1.03); }

/* ---------- hamburger jako kreski, nie znak z fontu ---------- */
.nav-toggle { line-height: 0; }
.nav-toggle svg { display: block; }
.nav-toggle .bar { transition: transform .22s ease, opacity .18s ease; transform-origin: center; }
.nav-toggle[aria-expanded="true"] .bar--1 { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar--2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar--3 { transform: translateY(-5px) rotate(-45deg); }

/* ---------- pasy dowodowe: lekki oddech ---------- */
.proof > div { position: relative; overflow: hidden; }
.proof .light::after {
  content: ""; position: absolute; right: -18%; top: -38%;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,.16); pointer-events: none;
}

/* ---------- cytaty: znak cudzysłowu jako element ---------- */
.quote { position: relative; }
.quote p:first-child::before {
  content: "„"; position: absolute; left: .55rem; top: -.15rem;
  font-family: var(--display); font-size: 2.6rem; color: var(--accent);
  opacity: .3; pointer-events: none;
}

/* ---------- FAQ: czytelniejszy rytm ---------- */
.faq > div:last-child { border-bottom: 1px solid var(--line); }

/* ---------- stopka: logo ---------- */
.footer-mark { height: 26px; width: auto; opacity: .55; margin-bottom: 1rem; }

/* ---------- drobne klasy zamiast stylow inline ---------- */
.u-flush-top { padding-top: 0; }
.u-band { background: var(--white); border-block: 1px solid var(--line); }
.u-mt { margin-top: 1.5rem; }
.u-note { margin-top: 1.4rem; font-size: .85rem; color: var(--muted-light); }
.u-center { text-align: center; margin-inline: auto; }
.u-center .lead { margin-inline: auto; }
.u-center .actions { justify-content: center; }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .kontakt-grid { grid-template-columns: 1fr; } }
.kontakt-box + .kontakt-box { margin-top: 1.5rem; }
.field-label { margin-bottom: .3rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-box h2 { font-size: 1.5rem; }
.contact-strip .meta { margin-bottom: .6rem; color: var(--muted); font-size: .9rem; }
.contact-strip .below { margin: 1rem 0 0; }
.h1--sm { font-size: clamp(2rem, 5vw, 3rem); }
.contact-box .kontakt-box + p { margin-top: 0; }
.hero-media { margin: 0; }
.ticks--flush { margin-bottom: 0; }
.form-intro { color: var(--muted); font-size: .92rem; }
.muted { color: var(--muted); margin: 0; }
.site-footer .muted { margin-top: 0; }

/* ---------- cele dotykowe: min. 44 px na telefonie ---------- */
@media (max-width: 860px) {
  .site-footer ul { gap: 0; }
  .site-footer ul li { display: flex; align-items: stretch; min-height: 46px; }
  .site-footer ul li a { display: flex; align-items: center; width: 100%; min-height: 46px; }
  .nav-toggle { padding: .85rem .95rem; }
  .consent-bar .button { padding: .8rem 1.1rem; }
  .site-footer__bottom a { padding-block: .65rem; }
  .site-footer__bottom a { display: inline-block; padding-block: .5rem; }
  .breadcrumb a { display: inline-block; padding-block: .4rem; }
  .form .consent a { display: inline-block; padding-block: .35rem; }
  .quote cite { display: block; padding-top: .2rem; }
}
