/* ===== Rad-Mot – wspólne style (uzupełniają Tailwind 2.2) ===== */

:root {
  --brand: #1e40af;       /* niebieski firmowy */
  --brand-dark: #1e3a8a;
  --ink: #111827;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ---------- Pasek górny ---------- */
.topbar { background: var(--ink); color: #d1d5db; font-size: 0.8125rem; }
.topbar a { color: #fff; }
.topbar a:hover { color: #93c5fd; }
.topbar svg { width: 15px; height: 15px; flex-shrink: 0; color: #60a5fa; }

/* ---------- Nagłówek ---------- */
.site-header { background: #fff; box-shadow: 0 1px 0 #e5e7eb, 0 2px 8px rgba(0,0,0,.04); }

.logo-font {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 1.55rem;
  color: var(--brand);
  letter-spacing: 1px;
  font-style: italic;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 359px) { .logo-font { font-size: 1.35rem; } }
@media (min-width: 640px) { .logo-font { font-size: 2.3rem; } }

.brand-tagline { border-left: 2px solid var(--brand); line-height: 1.35; }

.main-nav a {
  display: block;
  font-weight: 600;
  color: #374151;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  transition: background-color .2s, color .2s;
}
.main-nav a:hover { color: var(--brand); background: #eff6ff; }
.main-nav a[aria-current="page"] { color: #fff; background: var(--brand); }

/* Menu mobilne */
.menu-toggle { padding: .5rem; border-radius: 6px; color: #374151; }
.menu-toggle:hover { background: #f3f4f6; }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1023px) {
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
    padding: .5rem 1rem 1rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav a { padding: .75rem 1rem; }
}
@media (min-width: 1024px) {
  .main-nav { display: flex; gap: .25rem; }
  .menu-toggle { display: none; }
}

/* ---------- Hero / nagłówki podstron ---------- */
/* Strona główna: rozmyte zdjęcie budynku firmy + przyciemnienie pod tekstem */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero::before {
  content: "";
  position: absolute; inset: -24px;
  background: url('../images/image2.jpg') center 36% / cover no-repeat;
  filter: blur(5px);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17,24,39,.9) 0%, rgba(17,24,39,.72) 50%, rgba(17,24,39,.35) 100%);
}
.hero > * { position: relative; z-index: 1; }

/* Nagłówek podstrony: tekst na ciemnym tle, zdjęcie firmy po prawej (od 1024 px) */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-bottom: 4px solid var(--brand);
}
.page-hero-photo { display: none; }
@media (min-width: 1024px) {
  .page-hero-photo { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
  .page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
  .page-hero-photo::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, #111827 0%, rgba(17,24,39,.6) 30%, rgba(17,24,39,.1) 75%);
  }
}

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; color: #9ca3af; }
.breadcrumb a { color: #d1d5db; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700;
  padding: .75rem 1.5rem;
  border-radius: 6px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline-light { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { border: 2px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ---------- Karty ---------- */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

/* Karta ze zdjęciem (usługi na stronie głównej) */
.photo-card { display: flex; flex-direction: column; overflow: hidden; }
.photo-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Sklepy internetowe (Asortyment) */
.shop-panel { display: flex; flex-direction: column; overflow: hidden; }
.shop-panel > img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.shop-panel-body { display: flex; flex-direction: column; flex: 1; padding: 1.75rem; }
.shop-panel-body .btn { margin-top: 1.75rem; width: 100%; padding-top: .875rem; padding-bottom: .875rem; }

/* Lista z kreską zamiast kropki */
.dash-list li { position: relative; padding-left: 1.25rem; }
.dash-list li::before {
  content: "";
  position: absolute; left: 0; top: .75em;
  width: .625rem; height: 2px;
  background: var(--brand);
}

/* Tabela marek i modeli */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: .75rem 0; border-top: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 0; }
.spec-table th { width: 30%; padding-right: 1rem; font-weight: 700; color: #111827; }
.spec-table td { color: #4b5563; }

/* Tabela kontaktów */
.contact-table { width: 100%; border-collapse: collapse; }
.contact-table th, .contact-table td { padding: 1.125rem 1.5rem; text-align: left; vertical-align: top; }
.contact-table tr + tr { border-top: 1px solid #e5e7eb; }
.contact-table th { width: 35%; font-weight: 700; color: #111827; white-space: nowrap; }
.contact-table td { font-size: 1.125rem; line-height: 1.6; }
.contact-table a { color: var(--brand); font-weight: 600; }
.contact-table a:hover { text-decoration: underline; }
@media (max-width: 639px) {
  .contact-table tr, .contact-table th, .contact-table td { display: block; width: auto; }
  .contact-table th { padding-bottom: .25rem; }
  .contact-table td { padding-top: 0; }
}

/* ---------- Galeria ---------- */
.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background: #1f2937;
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.9);
  padding: 3.5rem 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.12);
  transition: background-color .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox button svg { width: 26px; height: 26px; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-counter { position: absolute; top: 1.4rem; left: 1.25rem; color: #d1d5db; font-size: .9rem; }

/* ---------- Mapa ---------- */
.map-frame { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink); color: #9ca3af; }
.site-footer h2 { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #e5e7eb; }
.site-footer a:hover { color: #93c5fd; }
.site-footer .logo-font { color: #fff; font-size: 1.35rem; }
.doc-link {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem;
  border: 1px solid #374151;
  border-radius: 6px;
  font-weight: 600;
  transition: border-color .2s, background-color .2s;
}
.doc-link:hover { border-color: #60a5fa; background: rgba(96,165,250,.08); }
.doc-link svg { width: 18px; height: 18px; color: #60a5fa; flex-shrink: 0; }

/* ---------- Dostępność ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: var(--brand);
  padding: .75rem 1rem; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }
a:focus-visible, button:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
