/* =========================================================
   Łukasz Zygadło — Remonty i Wykończenia Wnętrz (Tarnów)
   Paleta: grafit + ciepły off-white + glina, akcent terakota
   Typografia: Fraunces (display) + Hanken Grotesk (body)
   ========================================================= */

:root{
  /* kolor */
  --ink:        #211C18;   /* grafit/ciemne drewno */
  --ink-soft:   #38302A;
  --paper:      #F7F3EE;   /* ciepły off-white */
  --paper-2:    #EFE8DF;   /* glina jasna */
  --card:       #FFFFFF;
  --muted:      #6B5E51;   /* ciepły szarobrąz (tekst pomocniczy) — AA na paper */
  --line:       #E2D7C9;   /* delikatna kreska */
  --line-strong:#CDBEAC;
  --terra:      #C4622D;   /* terakota — akcent (AA na paper) */
  --terra-deep: #A14E20;   /* hover/akcent na jasnym */
  --terra-soft: #E8A06B;   /* terakota jasna na ciemnym tle */
  --sand:       #C9A86A;   /* musztarda/mosiądz — detal */
  --ok:         #2F6E4F;

  /* typografia */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* przestrzen */
  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(33,28,24,.05), 0 14px 40px -22px rgba(33,28,24,.45);
  --shadow-sm: 0 1px 2px rgba(33,28,24,.06), 0 6px 18px -12px rgba(33,28,24,.35);

  /* warstwy */
  --z-header: 100;
  --z-menu: 200;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  font-family:var(--font-body);
  font-size:clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height:1.65;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg{ max-width:100%; display:block; }

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.08;
  letter-spacing:-0.01em;
  color:var(--ink);
  margin:0 0 .5em;
  font-optical-sizing:auto;
}
p{ margin:0 0 1em; }
a{ color:var(--terra-deep); text-decoration-thickness:1px; text-underline-offset:2px; }
a:hover{ color:var(--terra); }
strong{ font-weight:700; }
::selection{ background:var(--terra); color:#fff; }

/* focus widoczny wszędzie (WCAG) */
:focus-visible{
  outline:3px solid var(--terra-deep);
  outline-offset:3px;
  border-radius:6px;
}

.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.eyebrow{
  font-family:var(--font-body);
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--terra-deep);
  margin:0 0 .9rem;
  display:flex; align-items:center; gap:.55rem;
}
.eyebrow::before{ content:""; width:26px; height:2px; background:var(--terra); display:inline-block; }
.tabnum{ font-variant-numeric:tabular-nums; }
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:999;
  background:var(--ink); color:#fff; padding:.7rem 1.1rem; border-radius:0 0 10px 0; font-weight:600;
}
.skip-link:focus{ left:0; color:#fff; }

/* ---------- przyciski ---------- */
.btn{
  --bg:var(--terra); --fg:#fff; --bd:var(--terra);
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  font-family:var(--font-body); font-weight:600; font-size:1rem;
  line-height:1; white-space:nowrap;
  padding:.92rem 1.45rem; min-height:48px;
  border:1.5px solid var(--bd); border-radius:999px;
  background:var(--bg); color:var(--fg);
  text-decoration:none; cursor:pointer;
  transition:transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover{ background:var(--terra-deep); border-color:var(--terra-deep); color:#fff; transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.btn:active{ transform:translateY(0); }
.btn .ico{ width:1.15em; height:1.15em; }
.btn--ghost{ --bg:transparent; --fg:var(--ink); --bd:var(--line-strong); }
.btn--ghost:hover{ background:var(--ink); border-color:var(--ink); color:#fff; }
.btn--lg{ padding:1.05rem 1.7rem; font-size:1.06rem; }
.btn--block{ width:100%; }

/* bazowy rozmiar ikon (siatka bezpieczenstwa — lekcja v5.2) */
.ico{ width:1.25em; height:1.25em; flex:none; stroke-width:1.7; }

/* =========================================================
   HEADER (sticky) — 1:1 chrome
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:var(--z-header);
  background:rgba(247,243,238,.86);
  backdrop-filter:saturate(140%) blur(10px);
  -webkit-backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; gap:1rem;
  min-height:72px;
}
.brand{ display:inline-flex; align-items:center; text-decoration:none; margin-right:auto; }
.brand img{ height:38px; width:auto; }
.brand:focus-visible{ outline-offset:5px; }

.nav{ display:none; }
.nav ul{ list-style:none; margin:0; padding:0; display:flex; align-items:center; gap:.35rem; }
.nav a{
  display:inline-block; text-decoration:none; color:var(--ink-soft);
  font-weight:600; font-size:.97rem; white-space:nowrap;
  padding:.55rem .75rem; border-radius:9px;
  transition:color .15s ease, background .15s ease;
}
.nav a:hover{ color:var(--ink); background:var(--paper-2); }

.header-cta{ display:none; align-items:center; gap:.7rem; }
.header-phone{
  display:inline-flex; align-items:center; gap:.5rem;
  font-weight:700; color:var(--ink); text-decoration:none; white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.header-phone .ico{ color:var(--terra-deep); }
.header-phone:hover{ color:var(--terra-deep); }

/* hamburger */
.menu-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; margin-left:auto;
  background:transparent; border:1.5px solid var(--line-strong); border-radius:11px;
  cursor:pointer; color:var(--ink);
}
.menu-toggle .ico{ width:24px; height:24px; }
.menu-toggle .ico-close{ display:none; }
.menu-toggle[aria-expanded="true"] .ico-open{ display:none; }
.menu-toggle[aria-expanded="true"] .ico-close{ display:block; }

/* panel mobilny */
.mobile-nav{
  display:none;
  position:fixed; inset:72px 0 auto 0; z-index:var(--z-menu);
  background:var(--paper); border-bottom:1px solid var(--line);
  box-shadow:var(--shadow); padding:var(--gutter);
  max-height:calc(100dvh - 72px); overflow:auto;
}
.mobile-nav.open{ display:block; animation:slideDown .22s ease both; }
@keyframes slideDown{ from{ opacity:0; transform:translateY(-8px); } to{ opacity:1; transform:none; } }
.mobile-nav ul{ list-style:none; margin:0 0 1.1rem; padding:0; }
.mobile-nav li{ border-bottom:1px solid var(--line); }
.mobile-nav a{
  display:block; padding:.95rem .2rem; text-decoration:none;
  color:var(--ink); font-weight:600; font-size:1.1rem; font-family:var(--font-display);
}
.mobile-nav a:hover{ color:var(--terra-deep); }
@media (prefers-reduced-motion: reduce){ .mobile-nav.open{ animation:none; } }

@media (min-width:1000px){
  .menu-toggle{ display:none; }
  .nav{ display:block; }
  .header-cta{ display:inline-flex; }
}

/* =========================================================
   SEKCJE — wspolny rytm
   ========================================================= */
section{ scroll-margin-top:90px; }
.section{ padding-block:clamp(3.6rem, 8vw, 6.5rem); }
.section--paper2{ background:var(--paper-2); }
.section--ink{ background:var(--ink); color:#EDE6DD; }
.section--ink h2,.section--ink h3{ color:#fff; }
.section-head{ max-width:46rem; margin-bottom:clamp(2rem,5vw,3.2rem); }
.section-head h2{ font-size:clamp(1.9rem, 1.4rem + 2.4vw, 3rem); }
.section-head p{ color:var(--muted); font-size:1.08rem; margin:0; }
.section--ink .section-head p{ color:#C9BEB1; }

/* =========================================================
   HERO (type-led — bez foto, lekcja v3)
   ========================================================= */
.hero{ position:relative; overflow:hidden; background:var(--paper); }
.hero::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(196,98,45,.13), transparent 60%),
    radial-gradient(50% 55% at 6% 96%, rgba(201,168,106,.14), transparent 60%);
}
.hero__inner{ position:relative; z-index:1; padding-block:clamp(3.2rem,9vw,6rem); }
.hero__grid{ display:grid; gap:clamp(2rem,5vw,3.5rem); align-items:center; }
.hero h1{
  font-size:clamp(2.5rem, 1.6rem + 5.4vw, 4.7rem);
  letter-spacing:-0.02em; margin-bottom:.35em;
}
.hero h1 em{ font-style:italic; color:var(--terra-deep); }
.hero__lead{
  font-size:clamp(1.08rem, 1rem + .55vw, 1.3rem);
  color:var(--ink-soft); max-width:38rem; margin-bottom:1.7rem;
}
.hero__actions{ display:flex; flex-wrap:wrap; gap:.85rem; margin-bottom:2rem; }
.hero__trust{ display:flex; flex-wrap:wrap; gap:.6rem; }
.pill{
  display:inline-flex; align-items:center; gap:.5rem;
  background:var(--card); border:1px solid var(--line);
  border-radius:999px; padding:.5rem .9rem;
  font-size:.9rem; font-weight:600; color:var(--ink-soft);
  box-shadow:var(--shadow-sm);
}
.pill .ico{ width:1.05em; height:1.05em; color:var(--terra-deep); }

/* karta-marka po prawej (type-led, nie foto) */
.hero__card{
  position:relative; background:var(--ink); color:#F2EBE2;
  border-radius:var(--radius-lg); padding:clamp(1.6rem,4vw,2.4rem);
  box-shadow:var(--shadow); overflow:hidden;
}
.hero__card::after{
  content:""; position:absolute; right:-40px; top:-40px; width:180px; height:180px;
  background:radial-gradient(circle, rgba(232,160,107,.22), transparent 70%);
}
.hero__card .label{
  font-size:.75rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--terra-soft); font-weight:700; margin-bottom:1.1rem;
}
.hero__card ul{ list-style:none; margin:0; padding:0; display:grid; gap:.85rem; position:relative; z-index:1; }
.hero__card li{ display:flex; gap:.7rem; align-items:flex-start; font-size:1.02rem; }
.hero__card li .ico{ color:var(--terra-soft); margin-top:.15rem; }
.hero__card .card-foot{
  margin-top:1.5rem; padding-top:1.3rem; border-top:1px solid rgba(255,255,255,.14);
  display:flex; align-items:baseline; gap:.6rem; position:relative; z-index:1;
}
.hero__card .card-foot strong{ font-family:var(--font-display); font-size:1.5rem; color:#fff; }
.hero__card .card-foot span{ color:#C9BEB1; font-size:.95rem; }

@media (min-width:860px){
  .hero__grid{ grid-template-columns:1.25fr .9fr; }
}

/* =========================================================
   USLUGI
   ========================================================= */
.svc-grid{ display:grid; gap:1.1rem; grid-template-columns:1fr; }
.svc-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:1.6rem 1.5rem; box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--line-strong); }
.svc-card__icon{
  width:50px; height:50px; border-radius:13px; display:grid; place-items:center;
  background:var(--paper-2); color:var(--terra-deep); margin-bottom:1rem;
  border:1px solid var(--line);
}
.svc-card__icon .ico{ width:25px; height:25px; }
.svc-card h3{ font-size:1.28rem; margin-bottom:.4rem; }
.svc-card p{ color:var(--muted); margin:0; font-size:.98rem; }
@media (min-width:620px){ .svc-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .svc-grid{ grid-template-columns:repeat(3,1fr); } }

/* lista zakresu prac (chips) */
.scope{ display:flex; flex-wrap:wrap; gap:.55rem; margin-top:2.4rem; justify-content:center; }
.scope span{
  display:inline-flex; align-items:center; gap:.45rem;
  background:var(--card); border:1px solid var(--line); border-radius:999px;
  padding:.5rem .95rem; font-size:.92rem; font-weight:600; color:var(--ink-soft);
}
.scope span .dot{ width:7px; height:7px; border-radius:50%; background:var(--terra); flex:none; }

/* =========================================================
   DLACZEGO MY (ciemna sekcja, bez fabrykacji)
   ========================================================= */
.why-grid{ display:grid; gap:1.4rem 2.2rem; grid-template-columns:1fr; }
.why-item{ display:flex; gap:1rem; align-items:flex-start; }
.why-item__ic{
  flex:none; width:46px; height:46px; border-radius:12px; display:grid; place-items:center;
  background:rgba(232,160,107,.13); color:var(--terra-soft); border:1px solid rgba(232,160,107,.25);
}
.why-item__ic .ico{ width:23px; height:23px; }
.why-item h3{ font-size:1.2rem; margin-bottom:.3rem; color:#fff; }
.why-item p{ color:#C9BEB1; margin:0; font-size:.97rem; }
@media (min-width:760px){ .why-grid{ grid-template-columns:repeat(2,1fr); } }

/* =========================================================
   STREFA ZDJEC — eleganckie placeholdery (BEZ stock/fake)
   ========================================================= */
.gallery-note{
  display:flex; gap:.7rem; align-items:flex-start;
  background:var(--card); border:1px dashed var(--line-strong); border-radius:var(--radius);
  padding:1rem 1.2rem; margin-bottom:2rem; color:var(--muted); font-size:.95rem;
}
.gallery-note .ico{ color:var(--terra-deep); margin-top:.1rem; }
.gallery{ display:grid; gap:1rem; grid-template-columns:repeat(2,1fr); }
.shot{
  position:relative; aspect-ratio:4/5; border-radius:var(--radius); overflow:hidden;
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 14px, #E8DFD3 14px 28px);
  border:1px solid var(--line-strong);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:1.1rem; color:var(--muted);
}
.shot__frame{
  position:absolute; inset:12px; border:1.5px dashed var(--line-strong); border-radius:10px;
  pointer-events:none;
}
.shot__ic{
  width:44px; height:44px; color:var(--terra-deep); margin-bottom:.7rem; opacity:.9;
}
.shot__ic .ico{ width:44px; height:44px; }
.shot__t{ font-family:var(--font-display); font-size:1.05rem; color:var(--ink); margin-bottom:.15rem; line-height:1.2; }
.shot__s{ font-size:.83rem; line-height:1.35; }
.shot--wide{ grid-column:1 / -1; aspect-ratio:16/7; }
@media (min-width:760px){
  .gallery{ grid-template-columns:repeat(4,1fr); }
  .shot--wide{ grid-column:span 2; aspect-ratio:4/5; }
}

/* =========================================================
   PROCES (kroki)
   ========================================================= */
.steps{ display:grid; gap:1.1rem; grid-template-columns:1fr; counter-reset:step; }
.step{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:1.5rem; position:relative; box-shadow:var(--shadow-sm);
}
.step__n{
  font-family:var(--font-display); font-size:2.2rem; font-weight:600;
  color:var(--terra); line-height:1; margin-bottom:.6rem; display:block;
  font-variant-numeric:tabular-nums;
}
.step h3{ font-size:1.15rem; margin-bottom:.3rem; }
.step p{ color:var(--muted); margin:0; font-size:.95rem; }
@media (min-width:680px){ .steps{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .steps{ grid-template-columns:repeat(4,1fr); } }

/* =========================================================
   KONTAKT
   ========================================================= */
.contact-grid{ display:grid; gap:2rem; grid-template-columns:1fr; }
.contact-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:clamp(1.6rem,4vw,2.3rem); box-shadow:var(--shadow);
}
.contact-list{ list-style:none; margin:0 0 1.6rem; padding:0; display:grid; gap:1.15rem; }
.contact-list li{ display:flex; gap:.9rem; align-items:flex-start; }
.contact-list .ic{
  flex:none; width:44px; height:44px; border-radius:12px; display:grid; place-items:center;
  background:var(--paper-2); color:var(--terra-deep); border:1px solid var(--line);
}
.contact-list .ic .ico{ width:22px; height:22px; }
.contact-list .k{ font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); font-weight:700; margin-bottom:.1rem; }
.contact-list .v{ font-size:1.12rem; font-weight:600; color:var(--ink); text-decoration:none; font-variant-numeric:tabular-nums; }
a.v:hover{ color:var(--terra-deep); }
.contact-hours{ font-size:.95rem; color:var(--muted); }

/* formularz */
.form{ display:grid; gap:1.05rem; }
.field{ display:grid; gap:.4rem; }
.field label{ font-weight:600; font-size:.93rem; color:var(--ink); }
.field .req{ color:var(--terra-deep); }
.field input,.field textarea{
  font-family:inherit; font-size:1rem; color:var(--ink);
  background:var(--paper); border:1.5px solid var(--line-strong); border-radius:11px;
  padding:.8rem .9rem; min-height:48px; width:100%;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field textarea{ min-height:130px; resize:vertical; line-height:1.5; }
.field input:focus,.field textarea:focus{
  outline:none; border-color:var(--terra-deep);
  box-shadow:0 0 0 3px rgba(196,98,45,.16);
}
.field input[aria-invalid="true"],.field textarea[aria-invalid="true"]{ border-color:#C0392B; }
.field .err{ color:#C0392B; font-size:.85rem; min-height:1.1em; }
.form__note{ font-size:.85rem; color:var(--muted); margin:0; }
.form__status{ font-size:.96rem; font-weight:600; margin:.2rem 0 0; }
.form__status.ok{ color:var(--ok); }

.map-frame{
  margin-top:2rem; border-radius:var(--radius-lg); overflow:hidden;
  border:1px solid var(--line); box-shadow:var(--shadow-sm); background:var(--paper-2);
}
.map-frame iframe{ display:block; width:100%; height:340px; border:0; }

@media (min-width:900px){
  .contact-grid{ grid-template-columns:1fr 1.05fr; align-items:start; }
}

/* =========================================================
   CTA pas
   ========================================================= */
.cta-band{ background:var(--terra); color:#fff; }
.cta-band .wrap{ display:grid; gap:1.4rem; align-items:center; padding-block:clamp(2.6rem,6vw,3.6rem); }
.cta-band h2{ color:#fff; font-size:clamp(1.7rem,1.3rem+1.8vw,2.5rem); margin:0; }
.cta-band p{ color:#FCEFE6; margin:.5rem 0 0; max-width:40rem; }
.cta-band .btn{ --bg:#fff; --fg:var(--ink); --bd:#fff; }
.cta-band .btn:hover{ --bg:var(--ink); --fg:#fff; --bd:var(--ink); }
.cta-band .actions{ display:flex; flex-wrap:wrap; gap:.8rem; }
@media (min-width:820px){
  .cta-band .wrap{ grid-template-columns:1.4fr auto; }
}

/* =========================================================
   STOPKA (NAP)
   ========================================================= */
.site-footer{ background:var(--ink); color:#CFC4B6; }
.footer-top{ display:grid; gap:2rem; padding-block:clamp(3rem,6vw,4rem); }
.footer-brand img{ height:40px; margin-bottom:1rem; }
.footer-brand p{ color:#A89C8D; max-width:30rem; font-size:.96rem; }
.footer-col h4{ color:#fff; font-size:.82rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom:.9rem; font-family:var(--font-body); font-weight:700; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:grid; gap:.55rem; }
.footer-col a{ color:#CFC4B6; text-decoration:none; font-size:.96rem; }
.footer-col a:hover{ color:var(--terra-soft); }
.footer-nap{ font-style:normal; line-height:1.7; color:#CFC4B6; font-size:.96rem; }
.footer-nap a{ color:#fff; text-decoration:none; font-variant-numeric:tabular-nums; }
.footer-nap a:hover{ color:var(--terra-soft); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1); padding-block:1.4rem;
  display:flex; flex-wrap:wrap; gap:.6rem 1.2rem; align-items:center; justify-content:space-between;
  font-size:.85rem; color:#9A8E7F;
}
.footer-bottom a{ color:#9A8E7F; }
@media (min-width:760px){ .footer-top{ grid-template-columns:1.5fr 1fr 1.2fr; gap:2.5rem; } }

/* =========================================================
   REVEAL on scroll — z safety-net (lekcja v2.1)
   ========================================================= */
.reveal{ opacity:1; }
.js .reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .js .reveal{ opacity:1 !important; transform:none !important; transition:none; }
}
