/* =========================================================
   ZiGarage — warsztat motocyklowy, Wilczyska / Bobowa
   ========================================================= */

:root {
  --red: #e21414;
  --red-dark: #b30f0f;
  --dark: #111215;
  --dark-2: #1a1c20;
  --dark-3: #232529;
  --gray-100: #f7f7f8;
  --gray-200: #ececee;
  --gray-500: #6b6f76;
  --gray-700: #3a3d43;
  --white: #ffffff;
  --font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.15;
  margin: 0 0 .5em;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(226,20,20,.35);
}
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-call {
  background: var(--red);
  color: #fff !important;
  padding: 10px 18px;
  font-size: .85rem;
}

.btn-block { display: block; text-align: center; margin-top: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--dark);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand:hover { text-decoration: none; }
.brand-logo { border-radius: 50%; background: #000; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.brand-tag { font-size: .72rem; color: var(--red); letter-spacing: .04em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: #eee;
  font-family: var(--font-head);
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.main-nav a:hover { color: var(--red); text-decoration: none; }

.nav-toggle { display: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 26px;
  height: 2px;
  background: #fff;
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 90px 0 70px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 40px, transparent 40px 90px),
    linear-gradient(115deg, rgba(8,9,11,.94) 0%, rgba(12,13,16,.88) 45%, rgba(38,9,10,.82) 100%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.eyebrow {
  color: var(--red);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  margin-bottom: 10px;
}
.eyebrow-center { text-align: center; }

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: .4em;
}
.hero h1 span { color: var(--red); }

.hero-lead {
  font-size: 1.08rem;
  color: #dcdcdc;
  max-width: 620px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: .95rem;
  color: #d5d5d5;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 18px;
}

/* ---------- USP bar ---------- */
.usp { background: var(--gray-100); padding: 46px 0; }
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.usp-item { display: flex; gap: 14px; align-items: flex-start; }
.usp-icon { font-size: 1.6rem; line-height: 1; }
.usp-item strong { font-family: var(--font-head); text-transform: uppercase; font-size: .95rem; letter-spacing: .02em; color: var(--dark); }
.usp-item p { margin: 4px 0 0; font-size: .92rem; color: var(--gray-500); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-100); }

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.section-lead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 46px;
  color: var(--gray-500);
  font-size: 1.02rem;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { margin: 0; font-size: .93rem; color: var(--gray-500); }

.services-cta { text-align: center; margin-top: 44px; }

/* ---------- Shop banner ---------- */
.shop-banner {
  background: linear-gradient(115deg, var(--dark) 0%, #2a0d0d 100%);
  padding: 50px 0;
}
.shop-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.shop-banner h2 {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  max-width: 620px;
}
.shop-banner p {
  color: #cfcfcf;
  max-width: 560px;
  margin: 0;
  font-size: .96rem;
}
.shop-banner .btn { flex-shrink: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}
.about-logo-badge {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--dark-3), var(--dark) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow);
  border: 4px solid var(--red);
}
.about-content p { font-size: 1rem; }
.pistons-box {
  margin-top: 26px;
  background: var(--dark);
  color: #eee;
  padding: 26px 28px;
  border-radius: var(--radius);
  border-left: 5px solid var(--red);
}
.pistons-box h3 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.pistons-box p { margin: 0; color: #cfcfcf; font-size: .95rem; }

/* ---------- Obszar dzialania ---------- */
.area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.area-list li {
  background: #fff;
  border: 1px solid var(--gray-200);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .03em;
  color: var(--dark);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item-wide { grid-column: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: #fff;
  font-family: var(--font-head);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.gallery-note {
  text-align: center;
  font-size: .78rem;
  color: var(--gray-500);
  margin-top: 18px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: .98rem;
  color: var(--dark);
  list-style: none;
  position: relative;
  padding-right: 26px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.3rem;
  color: var(--red);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 12px 0 0; color: var(--gray-500); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 56px;
}
.contact-info address { font-style: normal; margin-bottom: 26px; }
.contact-info address h3 { font-size: 1.2rem; }
.contact-info address p { margin: 0 0 10px; font-size: .96rem; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
  font-size: .94rem;
}
.hours-table caption {
  text-align: left;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 10px;
  color: var(--dark);
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 400;
}
.hours-table th { color: var(--gray-700); }
.hours-table td { color: var(--red); font-weight: 600; text-align: right; }

.contact-map {
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cfcfcf; padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand-footer { color: #fff; margin-bottom: 14px; }
.footer-grid p { font-size: .9rem; color: #b7b7b7; }
.footer-fb { color: var(--red); font-size: .9rem; }
.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #cfcfcf; font-size: .9rem; }
.footer-links a:hover { color: var(--red); }
.site-footer address { font-style: normal; font-size: .9rem; line-height: 1.9; }
.site-footer address a { color: #cfcfcf; }
.site-footer address a:hover { color: var(--red); }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: .82rem;
  color: #7d7d7d;
}
.footer-bottom p { margin: 4px 0; }
.footer-credit a { color: #9a9a9a; }
.footer-credit a:hover { color: var(--red); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
}

@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    border-bottom: 3px solid var(--red);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px;
  }
  .main-nav ul li { border-top: 1px solid rgba(255,255,255,.08); }
  .main-nav ul li a { display: block; padding: 14px 0; }
  .main-nav .btn-call { margin: 16px 20px 22px; text-align: center; }
  .nav-toggle:checked ~ .main-nav { max-height: 560px; }

  .hero { padding: 60px 0 50px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery-item-wide { grid-column: span 2; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links { align-items: center; }
}
