/* ============================================================
   WMB-TRANS – strona firmowa (one-page)
   ============================================================ */

:root {
  --navy: #1e2429;            /* kolor ciemny (nagłówek, stopka, tytuły) */
  --navy-2: #2a3138;
  --navy-3: #38414a;
  --navy-rgb: 30, 36, 41;
  --orange: #d7261d;          /* kolor akcentu */
  --orange-d: #b51f17;        /* akcent ciemniejszy (hover) */
  --accent-rgb: 215, 38, 29;
  --accent-text: #b51f17;     /* akcent jako tekst na jasnym tle */
  --on-accent: #ffffff;       /* tekst na tle akcentu */
  --bg: #f4f5f8;
  --text: #1b2130;
  --muted: #5d6678;
  --line: #e2e5eb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 51, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 27, 51, 0.18);
  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, "Segoe UI", Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.05;
  margin: 0 0 .5em;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .01em;
}
h1 { font-weight: 800; font-size: clamp(2.7rem, 6.5vw, 5.2rem); }
h2 { font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-weight: 700; font-size: 1.45rem; }
h4 { font-weight: 700; font-size: 1.15rem; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-alt { background: var(--bg); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 .6rem;
  padding-left: 42px;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 30px; height: 3px;
  background: var(--orange);
  transform: translateY(-50%);
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head-light h2 { color: var(--white); }
.section-head-light p:not(.eyebrow) { color: rgba(255,255,255,.8); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8em 1.5em;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1em 1.9em; font-size: 1.2rem; }
.btn-orange { background: var(--orange); color: var(--on-accent); box-shadow: 0 8px 20px rgba(var(--accent-rgb),.35); }
.btn-orange:hover { background: var(--orange-d); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }

/* ---------- nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none !important;
}
.logo-img { height: 60px; width: auto; display: block; }
.logo-img-footer { height: 96px; width: auto; display: block; }
.logo-mark { width: 46px; height: 46px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: .06em;
}
.logo-text small {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.nav a:not(.btn):hover, .nav a:not(.btn).active { color: var(--white); background: rgba(255,255,255,.08); }
.nav a:not(.btn).active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 2px; background: var(--orange);
}
.nav-phone { margin-left: 12px; font-size: 1.05rem; padding: .6em 1.1em; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
}
.nav-toggle span {
  display: block; height: 3px; width: 100%;
  background: var(--white); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero.jpg") center 40% / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--navy-rgb),.92) 0%, rgba(var(--navy-rgb),.75) 45%, rgba(var(--navy-rgb),.25) 100%),
    linear-gradient(0deg, rgba(var(--navy-rgb),.75) 0%, rgba(var(--navy-rgb),0) 40%);
}
.hero-inner {
  position: relative;
  padding: clamp(80px, 12vw, 150px) 0 clamp(110px, 14vw, 170px);
  max-width: 760px;
}
.hero-kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1rem;
}
.hero h1 { color: var(--white); margin-bottom: .4em; }
.hero-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: rgba(255,255,255,.88);
  max-width: 600px;
  margin: 0 0 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* pasek wyróżników */
.strip {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}
.strip li:last-child { border-right: 0; }
.strip svg { width: 40px; height: 40px; flex: none; fill: var(--orange); }
.strip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.1;
}
.strip span { font-size: .92rem; color: var(--muted); }

/* ---------- o firmie ---------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-badge {
  position: absolute;
  right: -18px; bottom: -22px;
  background: var(--orange);
  color: var(--on-accent);
  padding: 16px 22px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; line-height: 1.1;
}
.about-badge strong { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; letter-spacing: .06em; }
.about-badge span { font-size: .85rem; opacity: .95; }
.about-text p { color: var(--muted); }
.about-text .btn { margin-top: 10px; }

.checks { margin: 1.4rem 0 1.6rem; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; color: var(--text); }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange);
}
.checks li::after {
  content: "";
  position: absolute; left: 8px; top: 6px;
  width: 5px; height: 10px;
  border: solid var(--white); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* ---------- zakres prac ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
}
.service {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15,27,51,.06);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-img { aspect-ratio: 3 / 2; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 20px 22px 24px; }
.service-body h3 { font-size: 1.5rem; margin-bottom: .35em; }
.service-body p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- zastosowania ---------- */
.apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.apps li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 20px 22px;
  box-shadow: 0 4px 14px rgba(15,27,51,.05);
}
.apps svg { width: 34px; height: 34px; flex: none; fill: var(--orange); }
.apps strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 4px;
}
.apps span { font-size: .92rem; color: var(--muted); }

/* ---------- pasek CTA ---------- */
.cta-band { background: var(--orange); color: var(--on-accent); padding: clamp(44px, 6vw, 72px) 0; }
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--on-accent); margin: 0 0 .3em; }
.cta-band p { margin: 0; font-size: 1.12rem; max-width: 620px; opacity: .95; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white { background: var(--white); color: var(--navy); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn-white:hover { background: #f4f5f8; }
.btn-outline { background: transparent; color: var(--on-accent); border-color: var(--on-accent); opacity: .9; }
.btn-outline:hover { background: rgba(255,255,255,.18); opacity: 1; }
.cta-band .btn { text-transform: none; letter-spacing: .02em; }

/* ---------- galeria ---------- */
.gallery { columns: 3; column-gap: 18px; }
.gallery figure {
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  position: relative;
}
.gallery a { display: block; }
.gallery img { width: 100%; transition: transform .5s ease, opacity .3s ease; }
.gallery figure:hover img { transform: scale(1.04); opacity: .85; }


/* ---------- jak pracujemy ---------- */
.process { position: relative; color: var(--white); overflow: hidden; }
.process-bg {
  position: absolute; inset: 0;
  background: url("../img/proces-tlo.jpg") center / cover no-repeat;
}
.process-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--navy-rgb),.93), rgba(var(--navy-rgb),.86));
}
.process .container { position: relative; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.steps li {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  backdrop-filter: blur(4px);
}
.step-no {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 12px;
}
.steps h3 { color: var(--white); font-size: 1.4rem; }
.steps p { margin: 0; color: rgba(255,255,255,.8); font-size: .98rem; }

/* ---------- kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ccard {
  display: flex; gap: 14px;
  background: var(--bg);
  border-radius: 12px;
  padding: 20px;
}
.ccard svg { width: 30px; height: 30px; flex: none; fill: var(--orange); margin-top: 2px; }
.ccard h3 { font-size: 1.15rem; margin-bottom: .25em; color: var(--muted); letter-spacing: .08em; }
.ccard a { color: var(--navy); font-weight: 500; }
.ccard .big-link { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.ccard .big-link.placeholder { color: var(--muted); letter-spacing: .04em; }
.ccard .mail-link { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.ccard .small { font-size: .88rem; color: var(--muted); margin: .25rem 0 0; }
.ccard .reg { margin: 0; color: var(--text); font-weight: 500; line-height: 1.5; }
.ccard address { color: var(--text); font-weight: 500; }

.contact-form {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-lg);
}
.contact-form h3 { color: var(--white); font-size: 1.7rem; margin-bottom: 1rem; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  display: block;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--white);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--orange); background: rgba(255,255,255,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { margin-top: 6px; width: 100%; justify-content: center; }
.form-note { font-size: .85rem; color: rgba(255,255,255,.6); margin: 14px 0 0; }
.form-error { font-size: .95rem; color: #ffb27a; margin: 12px 0 0; font-weight: 500; }
.form-success { font-size: 1rem; color: #9be39b; margin: 12px 0 0; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.map { margin-top: clamp(40px, 6vw, 72px); }
.map iframe { display: block; filter: saturate(.85); }

/* ---------- stopka ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding-top: 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer p { margin: 14px 0 0; font-size: .95rem; max-width: 380px; }
.site-footer h4 { color: var(--white); letter-spacing: .1em; margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--orange); }
.logo-footer .logo-text small { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: .85rem; color: rgba(255,255,255,.55);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,16,30,.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img {
  max-width: 92vw; max-height: 82vh;
  width: auto; height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox figcaption { color: rgba(255,255,255,.85); margin-top: 14px; font-size: 1.05rem; }
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 0; border-radius: 50%;
  width: 52px; height: 52px;
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.lightbox button:hover { background: var(--orange); color: var(--on-accent); }
.lb-close { top: 18px; right: 18px; font-size: 2.2rem !important; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- animacja pojawiania ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service, .service-img img, .gallery img { transition: none; }
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 1140px) {
  .site-header .logo-text small { display: none; }
  .nav a:not(.btn) { padding: 10px 11px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip li:nth-child(2) { border-right: 0; }
  .strip li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a:not(.btn) { font-family: var(--font-head); font-size: 1.5rem; text-transform: uppercase; padding: 14px 16px; }
  .nav a:not(.btn).active::after { display: none; }
  .nav-phone { margin: 16px 0 0; justify-content: center; font-size: 1.3rem; }
  .about { grid-template-columns: 1fr; }
  .about-badge { right: 12px; bottom: -18px; }
  .about-text { margin-top: 20px; }
  .contact { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .logo-text small { display: none; }
  .logo-text strong { font-size: 1.8rem; }
  .logo-img { height: 48px; }
  .logo-img-footer { height: 80px; }
  .hero-inner { padding-bottom: 96px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .strip { grid-template-columns: 1fr; margin-top: -48px; }
  .strip li { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; }
  .strip li:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .contact-cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { columns: 1; }
  .lightbox button { width: 44px; height: 44px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
