/* Verifirm — baza, komponenty, header, footer */

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--vf-bg);
  color: var(--vf-text);
  font-family: var(--vf-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--vf-text); text-decoration: none; }
a:hover { color: var(--vf-blue); }
button, input, select, textarea { font-family: inherit; }
::selection { background: var(--vf-focus); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
a.screen-reader-text:focus {
  position: fixed !important; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; padding: 12px 16px; margin: 0;
  clip: auto; background: #FFFFFF; color: var(--vf-text); font-weight: 600; border-radius: var(--vf-radius-sm); box-shadow: var(--vf-ring);
}

.container {
  max-width: var(--vf-container);
  margin: 0 auto;
  padding-left: var(--vf-gutter);
  padding-right: var(--vf-gutter);
}

/* ---------- Ikony (pliki SVG) ---------- */
.icon { display: block; width: 24px; height: 24px; flex: none; }
.icon--14 { width: 14px; height: 14px; }
.icon--15 { width: 15px; height: 15px; }
.icon--16 { width: 16px; height: 16px; }
.icon--18 { width: 18px; height: 18px; }
.icon--20 { width: 20px; height: 20px; }
.icon--22 { width: 22px; height: 22px; }
.icon--26 { width: 26px; height: 26px; }
.icon--30 { width: 30px; height: 30px; }
.icon--32 { width: 32px; height: 32px; }
.icon--muted { opacity: 0.7; }
.icon--white { filter: brightness(0) invert(1); }
.icon--brand { filter: brightness(0) saturate(100%) invert(41%) sepia(72%) saturate(3655%) hue-rotate(202deg) brightness(99%) contrast(94%); }
.svg-icon { display: block; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* Kafelek z ikoną (branże) */
.icon-tile {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; border-radius: var(--vf-radius);
  background: var(--vf-blue-50);
}
.icon-tile--40 { width: 40px; height: 40px; }
.icon-tile--44 { width: 44px; height: 44px; }
.icon-tile--52 { width: 52px; height: 52px; }
.icon-tile--60 { width: 60px; height: 60px; border-radius: var(--vf-radius-md); }
.icon-tile--64 { width: 64px; height: 64px; border-radius: var(--vf-radius-md); }
.icon-tile--plumber { background: var(--vf-ind-plumber); }
.icon-tile--electrician { background: var(--vf-ind-electrician); }
.icon-tile--painter { background: var(--vf-ind-painter); }
.icon-tile--roofer { background: var(--vf-ind-roofer); }
.icon-tile--carpenter { background: var(--vf-ind-carpenter); }
.icon-tile--renovation { background: var(--vf-ind-renovation); }
.icon-tile--gardener { background: var(--vf-ind-gardener); }
.icon-tile--tiler { background: var(--vf-ind-tiler); }
.icon-tile--hvac { background: var(--vf-ind-hvac); }
.icon-tile--cleaning { background: var(--vf-ind-cleaning); }
.icon-tile--brand { background: var(--vf-blue); color: #FFFFFF; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--vf-radius-sm);
  background: transparent; color: var(--vf-text);
  font-size: 15px; font-weight: 600; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:focus { outline: none; }
.btn:focus-visible { box-shadow: var(--vf-ring); }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--xl { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--vf-navy); border-color: var(--vf-navy); color: #FFFFFF; }
.btn--primary:hover { background: var(--vf-navy-900); border-color: var(--vf-navy-900); color: #FFFFFF; }

.btn--brand { background: var(--vf-blue); border-color: var(--vf-blue); color: #FFFFFF; }
.btn--brand:hover { background: var(--vf-blue-600); border-color: var(--vf-blue-600); color: #FFFFFF; }

.btn--outline { background: #FFFFFF; border-color: var(--vf-border-strong); color: var(--vf-text); }
.btn--outline:hover { background: var(--vf-bg); border-color: var(--vf-border-hover); color: var(--vf-text); }

.btn--link { padding: 0 12px; color: var(--vf-blue); }
.btn--link:hover { background: var(--vf-blue-50); color: var(--vf-blue); }

/* Na ciemnym tle */
.btn--light { background: #FFFFFF; border-color: #FFFFFF; color: var(--vf-navy); }
.btn--light:hover { background: var(--vf-blue-50); border-color: var(--vf-blue-50); color: var(--vf-navy); }
.btn--light:focus-visible { box-shadow: 0 0 0 3px var(--vf-blue), 0 0 0 5px #FFFFFF; }
.btn--on-dark-link {
  padding: 0 16px; color: #FFFFFF;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.45);
}
.btn--on-dark-link:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.btn--on-dark-link:focus-visible { box-shadow: 0 0 0 3px #FFFFFF; }

/* ---------- Eyebrow / pigułka nad nagłówkiem ---------- */
.pill {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
  border-radius: var(--vf-radius-full);
  background: var(--vf-blue-50); color: var(--vf-blue-ink);
  font-size: 14px; font-weight: 600;
}
.pill--bordered { border: 1px solid var(--vf-blue-100); }
.pill--on-dark { height: 32px; padding: 0 14px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.26); color: #FFFFFF; }
.pill--gradient { background: linear-gradient(145deg, #1680FF 0%, var(--vf-blue) 35%, var(--vf-blue-800) 100%); color: #FFFFFF; }

/* ---------- Plakietki statusów ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 28px; padding: 0 11px;
  border: 1px solid var(--vf-neutral-border); border-radius: var(--vf-radius-xs);
  background: var(--vf-neutral-bg); color: var(--vf-neutral);
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
}
.badge--sm { min-height: 26px; padding: 0 10px; font-size: 13px; }
.badge--verified { background: var(--vf-verified-bg); border-color: var(--vf-verified-border); color: var(--vf-verified); }
.badge--pending { background: var(--vf-pending-bg); border-color: var(--vf-pending-border); color: var(--vf-pending); }
.badge--registry { background: var(--vf-registry-bg); border-color: var(--vf-registry-border); color: var(--vf-registry); }
.badge--claimed { background: var(--vf-claimed-bg); border-color: var(--vf-claimed-border); color: var(--vf-claimed); }
.badge--error { background: var(--vf-error-bg); border-color: var(--vf-error-border); color: var(--vf-error); }
.badge--activity { color: var(--vf-text-muted); gap: 8px; }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--vf-verified); flex: none; }

/* Podpis wersalikami */
.caption { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vf-text-subtle); }

/* Podkreślenie markerem */
.marker {
  background-image: linear-gradient(100deg, rgba(24, 120, 248, 0) 0%, rgba(24, 120, 248, 0.34) 3%, rgba(24, 120, 248, 0.28) 96%, rgba(24, 120, 248, 0) 100%);
  background-repeat: no-repeat; background-size: 100% 0.34em; background-position: 0 90%;
  padding: 0 0.1em; margin: 0 -0.1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.marker--on-dark {
  background-image: linear-gradient(100deg, rgba(24, 120, 248, 0) 0%, rgba(24, 120, 248, 0.95) 3%, rgba(24, 120, 248, 0.85) 96%, rgba(24, 120, 248, 0) 100%);
}

/* ---------- Nagłówek sekcji ---------- */
.section { position: relative; }
.section--white { background: #FFFFFF; }
.section--gray { background: var(--vf-bg); }
.section--dark { background: var(--vf-navy-900); }
.section--bordered { border-bottom: 1px solid var(--vf-border); }

.section-head--center { text-align: center; }
.section-head__title {
  margin: 8px 0 0; font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; color: var(--vf-text);
}
.section-head__title--sm { font-size: 26px; line-height: 1.25; letter-spacing: -0.015em; }
.section-head__lead {
  margin: 8px 0 0; font-size: 17px; line-height: 1.5; color: var(--vf-text-subtle); max-width: 56ch; text-wrap: pretty;
}
.section-head--center .section-head__lead { margin-left: auto; margin-right: auto; max-width: 640px; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #FFFFFF; border-bottom: 1px solid var(--vf-border);
  transition: box-shadow 200ms ease;
}
.site-header.is-stuck { box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08); }
.site-header__bar {
  display: flex; align-items: center; gap: 32px;
  min-height: var(--vf-header-h);
  transition: min-height 200ms ease;
}
.site-header.is-stuck .site-header__bar { min-height: var(--vf-header-h-stuck); }
.site-header__logo { display: inline-flex; align-items: center; padding: 6px 2px; border-radius: var(--vf-radius-sm); flex: none; }
.site-header__logo:focus-visible { outline: none; box-shadow: var(--vf-ring); }
.site-header__logo img { display: block; width: 156px; height: auto; transition: width 200ms ease; }
.site-header.is-stuck .site-header__logo img { width: 132px; }

.site-header__nav { flex: 1; display: flex; justify-content: center; }
.site-header__menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-header__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--vf-radius-sm); font-size: 15px; font-weight: 500; color: var(--vf-text-body);
}
.site-header__link:hover, .site-header__link[aria-current="page"] { background: var(--vf-bg); color: var(--vf-text); }
.site-header__link:focus-visible { outline: none; box-shadow: var(--vf-ring); }

.site-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.site-header__burger {
  display: none; margin-left: auto; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; padding: 0;
  border: 1px solid var(--vf-border-strong); border-radius: var(--vf-radius-sm); background: #FFFFFF; cursor: pointer;
}
.site-header__burger:hover { background: var(--vf-bg); }
.site-header__burger:focus-visible { outline: none; box-shadow: var(--vf-ring); }
.site-header__burger-lines { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.site-header__burger-lines span { height: 2px; border-radius: 2px; background: var(--vf-navy); }

.site-header__mobile {
  display: none; overflow: hidden; max-height: 0;
  border-top: 1px solid var(--vf-line);
  transition: max-height 260ms ease;
}
.site-header.is-open .site-header__mobile { max-height: 420px; }
.site-header__mobile-inner { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 20px; }
.site-header__mobile-link {
  display: flex; align-items: center; min-height: 48px; padding: 0 8px;
  border-radius: var(--vf-radius-sm); font-size: 16px; font-weight: 500; color: var(--vf-text-body);
}
.site-header__mobile-link:hover { background: var(--vf-bg); color: var(--vf-text); }
.site-header__mobile-link:focus-visible { outline: none; box-shadow: var(--vf-ring); }
.site-header__mobile-inner .btn { min-height: 48px; font-size: 16px; }
.site-header__mobile-inner .btn--brand { margin-top: 8px; }

@media (max-width: 1040px) {
  .site-header__bar { gap: 16px; padding-left: 20px; padding-right: 20px; }
  .site-header__nav, .site-header__actions { display: none; }
  .site-header__burger { display: inline-flex; }
  .site-header__mobile { display: block; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--vf-navy-900); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.site-footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px; padding: 72px 0 56px;
}
.site-footer__logo { display: block; width: 140px; height: auto; opacity: 0.92; }
.site-footer__about { margin: 22px 0 0; font-size: 15px; line-height: 1.7; color: var(--vf-on-dark-subtle); max-width: 34ch; text-wrap: pretty; }
.site-footer__heading { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vf-on-dark-muted); }
.site-footer__menu { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-footer__link { display: inline-flex; align-items: center; min-height: 34px; font-size: 15px; color: var(--vf-on-dark-subtle); border-radius: var(--vf-radius-xs); }
.site-footer__link:hover { color: var(--vf-on-dark); text-decoration: underline; }
.site-footer__link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--vf-blue); }
.site-footer__contact { display: grid; gap: 6px; margin-top: 18px; font-size: 14px; font-style: normal; }
.site-footer__contact a { color: var(--vf-on-dark-subtle); text-decoration: none; }
.site-footer__contact a:hover, .site-footer__contact a:focus-visible { color: #fff; text-decoration: underline; }
.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 24px 0 36px; border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 14px; line-height: 1.7; color: var(--vf-on-dark-faint);
}
.site-footer__bottom p { margin: 0; max-width: 70ch; }
.site-footer__credit a { color: var(--vf-on-dark-muted); font-weight: 600; border-radius: var(--vf-radius-xs); }
.site-footer__credit a:hover { color: var(--vf-on-dark-muted); text-decoration: underline; }
.site-footer__credit a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--vf-blue); }

@media (max-width: 980px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Animacja wejścia ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(20px);
    transition: opacity 450ms ease, transform 450ms ease;
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
