/* =========================================================================
   JCLB Sp. z o.o. - arkusz stylow
   Bez frameworkow (Bootstrap/Tailwind) - lekki plik na potrzeby Page Speed.
   Font systemowy (brak zewnetrznych zapytan do Google Fonts).
   ========================================================================= */

:root {
  --red: #E30F13;
  --red-dark: #B8090C;
  --navy: #12171E;
  --navy-2: #1A2027;
  --gray-900: #1f2933;
  --gray-700: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f0f2f5;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(18, 23, 30, 0.25);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark { border-color: var(--gray-200); color: var(--gray-900); }
.btn-outline-dark:hover { background: var(--gray-100); }
.btn-link { color: var(--red); font-weight: 600; }
.btn-link:hover { color: var(--red-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
}
.brand-logo { height: 34px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav ul { display: flex; gap: 26px; }
.main-nav a { font-weight: 600; color: var(--gray-700); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--navy); border-color: var(--red); }
.nav-cta { padding: 11px 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background-color: var(--navy);
  overflow: hidden;
}
.hero picture, .hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12,15,20,0.94) 15%, rgba(12,15,20,0.55) 55%, rgba(12,15,20,0.35) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 90px 0 110px;
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
}
.hero h1 .accent { color: var(--red); }
.hero p.lead { font-size: 1.05rem; color: #dfe3e8; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-tag {
  margin-top: 46px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9aa3ad;
}

/* ---------- Section basics ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--gray-100); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.section-head .lead { color: var(--gray-500); max-width: 420px; margin: 0; }

/* ---------- Oferta cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-photo { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card-icon { width: 44px; height: 44px; margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; font-weight: 700; }
.card p { color: var(--gray-500); font-size: 0.92rem; margin-bottom: 12px; }

/* ---------- Dlaczego JCLB ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature { text-align: left; }
.feature img { width: 40px; height: 40px; margin-bottom: 12px; }
.feature h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.feature p { color: var(--gray-500); font-size: 0.88rem; margin: 0; }
.why-head { max-width: 640px; margin-bottom: 40px; }

/* ---------- Wybrana realizacja (feature) ---------- */
.feature-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature-project .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.feature-project .photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-project h2 { font-size: 1.6rem; font-weight: 800; }
.feature-project p { color: var(--gray-500); }

/* ---------- Realizacje grid ---------- */
.realizacje-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.realizacje-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.realizacja-card { display: block; }
.realizacja-card .slideshow {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
}
.realizacja-card .slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.realizacja-card .slideshow img.is-active { opacity: 1; }
.realizacja-card .info { padding-top: 14px; }
.realizacja-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.realizacja-card .loc { color: var(--red); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.realizacja-card p.desc { color: var(--gray-500); font-size: 0.9rem; margin: 6px 0 0; }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card .photo { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); }
.blog-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .date { color: var(--gray-500); font-size: 0.8rem; margin: 12px 0 4px; }
.blog-card h3 { font-size: 1.05rem; font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); }
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 44px 20px;
}
.cta-band h2 { margin: 0; font-size: 1.5rem; }
.cta-band .eyebrow { color: #ff6b6b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: #cfd3d8; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 20px 32px;
}
.footer-brand { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; }
.footer-brand .brand-name { font-weight: 800; color: var(--white); font-size: 1.1rem; }
.footer-col h3 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col p, .footer-col li { font-size: 0.9rem; margin-bottom: 8px; color: #b7bcc3; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: #8b9098;
}

/* ---------- Inner pages (oferta, kontakt, blog, realizacja) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.page-hero p { color: #c7ccd2; max-width: 600px; margin: 0; }
.breadcrumbs { font-size: 0.82rem; color: #9aa3ad; margin-bottom: 14px; }
.breadcrumbs a { color: #c7ccd2; }
.breadcrumbs a:hover { color: var(--white); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose p { color: var(--gray-700); }
.prose ul { padding-left: 1.2em; list-style: disc; margin-bottom: 1em; color: var(--gray-700); }
.prose img { border-radius: var(--radius); margin: 1em 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.gallery-grid a { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; background: rgba(10,12,16,0.92);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; color: var(--white);
  font-size: 2rem; background: none; border: none; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: var(--white);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.oferta-list { display: grid; gap: 28px; margin-top: 10px; }
.oferta-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.oferta-item img { width: 48px; height: 48px; }
.oferta-item h3 { margin-bottom: 6px; }
.oferta-item p { color: var(--gray-500); margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info .item img { width: 26px; height: 26px; margin-top: 2px; }
.contact-info h4 { margin-bottom: 4px; font-size: 0.95rem; }
.contact-info p { color: var(--gray-500); margin: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}
input:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--gray-500); }
.checkbox-row input { margin-top: 3px; }
.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #e7f6ec; color: #1f7a3d; }
.alert-error { background: #fdecea; color: #b3261e; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); margin-top: 24px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 6px; border: 1px solid var(--gray-200); font-weight: 600; font-size: 0.9rem;
}
.pagination a:hover { background: var(--gray-100); }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

.empty-state { padding: 60px 20px; text-align: center; color: var(--gray-500); }

/* ---------- Admin note badges shared by public forms ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: var(--gray-100); color: var(--gray-700); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-project { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    box-shadow: var(--shadow);
    display: none;
    gap: 16px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 10px 0; }
  .nav-toggle { display: flex; }
  .nav-cta { text-align: center; justify-content: center; }

  .grid-3, .realizacje-grid, .realizacje-grid.grid-3, .blog-grid, .features { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .oferta-item { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .hero-inner { padding: 60px 0 80px; }
  .section { padding: 56px 0; }
}
