/* ============================================================
   Bimmers – Serwis BMW Wrocław
   Minimalistyczny, kanciasty, responsywny styl
   ============================================================ */

:root {
    --c-ink: #0f1113;
    --c-graphite: #1b1f24;
    --c-slate: #4a525c;
    --c-mist: #eceef1;
    --c-line: #d7dbe0;
    --c-white: #ffffff;
    --c-blue: #0066b1;   /* BMW blue */
    --c-blue-dark: #004e88;
    --c-red: #d10a2c;    /* akcent z logo */
    --shadow: 0 18px 40px -24px rgba(15, 17, 19, 0.45);
    --wrap: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
    color: var(--c-ink);
    background: var(--c-white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0 0 0.4em;
    font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--c-blue); text-decoration: none; }
a:hover { color: var(--c-blue-dark); }

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

.container {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: clamp(48px, 8vw, 96px) 0; }

.eyebrow {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--c-blue);
    border-left: 3px solid var(--c-red);
    padding-left: 10px;
    margin-bottom: 12px;
}

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-actions { margin-top: 40px; }

/* ---------- Buttons (kanciaste) ---------- */
.btn {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 30px;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c-blue); color: #fff; }
.btn-primary:hover { background: var(--c-blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn-outline:hover { background: var(--c-ink); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--c-ink); }

/* ---------- Logo na białym tle (bez widocznej krawędzi) ---------- */
.logo-box {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 8px 12px;
}
.logo-box img { height: 52px; width: auto; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav a {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--c-ink);
    padding: 10px 14px;
    border-bottom: 3px solid transparent;
}
.main-nav a:hover,
.main-nav a.active { color: var(--c-blue); border-bottom-color: var(--c-red); }
.main-nav .nav-phone {
    margin-left: 12px;
    background: var(--c-blue);
    color: #fff;
    border-bottom: none;
    padding: 10px 18px;
}
.main-nav .nav-phone:hover { background: var(--c-blue-dark); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--c-line);
    cursor: pointer;
}
.nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--c-ink);
    transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    background: var(--c-graphite);
    overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
/* Pusty stan hero: czyste ciemne tło zamiast paskowanego placeholdera */
.hero-media .img-placeholder { background: var(--c-graphite); border: none; }
.hero-media .img-placeholder span { display: none; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(11,13,15,.82) 0%, rgba(11,13,15,.5) 50%, rgba(11,13,15,.15) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding-top: clamp(70px, 12vw, 150px);
    padding-bottom: clamp(70px, 12vw, 150px);
}
.hero-content .eyebrow { color: #7fc4ff; }
.hero-content p { font-size: 1.2rem; color: #d7dbe0; margin-bottom: 28px; max-width: 620px; }

/* ---------- Split section ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}
.split-reverse .split-text { order: 2; }
.split-text .btn { margin-top: 12px; }

.ratio-media { aspect-ratio: 4/3; width: 100%; height: 100%; display: block; object-fit: cover; }
.ratio-media.tall { aspect-ratio: 3/4; }
.ratio-media img, .ratio-media.img-placeholder { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Placeholder zdjęć ---------- */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(45deg, #e9ecef 0 14px, #eef1f4 14px 28px);
    border: 1px dashed var(--c-line);
    color: var(--c-slate);
    text-align: center;
    min-height: 220px;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
}
.img-placeholder span { padding: 12px 18px; }

/* ---------- Cards grid ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-top: 4px solid var(--c-blue);
    padding: 30px 26px;
    border-radius: 0;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-top-color: var(--c-red);
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--c-slate); margin: 0; }
.card-index {
    display: block;
    width: 34px; height: 4px;
    background: var(--c-red);
    margin-bottom: 18px;
}

.services-section.alt { background: var(--c-mist); }
.services-section.alt .card { border-color: var(--c-line); }

/* ---------- Reviews ---------- */
.reviews-teaser { background: var(--c-ink); color: #fff; }
.reviews-teaser .eyebrow { color: #7fc4ff; }
.review-card {
    background: #fff;
    border-top-color: var(--c-red);
    color: var(--c-ink);
}
.review-card p { color: var(--c-graphite); font-style: italic; }
.review-card cite {
    display: block;
    margin-top: 14px;
    font-style: normal;
    font-weight: 700;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-blue);
}
.reviews-grid { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
.reviews-grid .review-card {
    display: flex;
    flex-direction: column;
}
.reviews-grid .review-card p { flex: 1 0 auto; margin-bottom: 18px; }
.reviews-grid .review-card cite { margin-top: auto; }
.review-card .quote-mark {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3rem;
    line-height: 0.6;
    color: var(--c-red);
    display: block;
    margin-bottom: 8px;
}

/* ---------- Slider (opinie na home) ---------- */
.slider { position: relative; overflow: hidden; }
.slider-track {
    display: flex;
    gap: 24px;
    transition: transform .4s ease;
}
.slider-track .review-card {
    flex: 0 0 calc((100% - 24px) / 2);
    display: flex;
    flex-direction: column;
}
.slider-track .review-card p { flex: 1 0 auto; }
.slider-nav { display: flex; gap: 10px; margin-top: 26px; }
.slider-btn {
    width: 48px; height: 48px;
    border: 1px solid rgba(255,255,255,.4);
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 0;
    transition: background .18s ease, color .18s ease;
}
.slider-btn:hover { background: #fff; color: var(--c-ink); }

/* ---------- Page hero (podstrony) ---------- */
.page-hero {
    background: var(--c-graphite);
    color: #fff;
    padding: clamp(50px, 8vw, 90px) 0 clamp(40px, 6vw, 70px);
    border-bottom: 4px solid var(--c-blue);
}
.page-hero .eyebrow { color: #7fc4ff; }
.page-hero h1 { margin: 0; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--c-mist); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--c-line);
    border: 1px solid var(--c-line);
}
.stat {
    background: #fff;
    padding: 30px 24px;
}
.stat strong {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: var(--c-blue);
}
.stat span { color: var(--c-slate); font-size: 0.95rem; }

/* ---------- Feature band (pełnoekranowe zdjęcie BMW) ---------- */
.feature-band {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 340px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.feature-band--tall { min-height: 420px; }
.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,13,15,.82) 0%, rgba(11,13,15,.55) 50%, rgba(11,13,15,.2) 100%);
}
.feature-content { position: relative; z-index: 1; color: #fff; padding: 60px 24px; }
.feature-content .eyebrow { color: #7fc4ff; }
.feature-content p {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.15;
    max-width: 640px;
    margin: 0;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-blue); color: #fff; }
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 60px);
}
.contact-info .lead { font-size: 1.1rem; color: var(--c-slate); }
.contact-list { list-style: none; margin: 24px 0; padding: 0; }
.contact-list li {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--c-line);
}
.ci-label {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-blue);
    font-weight: 600;
}
.map-placeholder { min-height: 260px; margin-top: 24px; }
.map-wrap { margin-top: 24px; }
.map-wrap iframe { width: 100%; min-height: 300px; border: 0; }
.map-link {
    display: inline-block;
    margin-top: 6px;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form-wrap {
    background: var(--c-mist);
    border: 1px solid var(--c-line);
    border-top: 4px solid var(--c-blue);
    padding: clamp(24px, 4vw, 40px);
}
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 6px;
}
.field input,
.field textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1px solid var(--c-line);
    border-radius: 0;
    background: #fff;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(0,102,177,.15);
}
.field .err { color: var(--c-red); font-size: 0.85rem; margin-top: 5px; }
.hp { position: absolute; left: -9999px; }

.alert { padding: 14px 18px; margin-bottom: 20px; border-left: 4px solid; }
.alert-success { background: #e6f4ea; border-color: #1f9d55; color: #14522d; }
.alert-error { background: #fdecef; border-color: var(--c-red); color: #7a0a1c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: #c3c9d0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 64px 24px 40px;
}
.footer-wordmark {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--c-blue);
}
.footer-brand p { color: #9aa2ac; max-width: 280px; }
.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 14px;
    letter-spacing: 0.06em;
}
.footer-col a { color: #c3c9d0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 0.85rem;
    color: #8a929c;
}
.footer-bottom a { color: #8a929c; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   Responsywność: tablet
   ============================================================ */
@media (max-width: 1024px) {
    .cards-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .slider-track .review-card { flex: 0 0 calc((100% - 24px) / 2); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Responsywność: mobile
   ============================================================ */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        inset: 78px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--c-line);
        padding: 8px 0;
        transform: translateY(-120%);
        transition: transform .25s ease;
        box-shadow: var(--shadow);
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: 14px 24px; border-bottom: 1px solid var(--c-mist); }
    .main-nav a:hover, .main-nav a.active { border-bottom-color: var(--c-mist); background: var(--c-mist); }
    .main-nav .nav-phone { margin: 8px 24px; text-align: center; }

    .split { grid-template-columns: 1fr; }
    .split-reverse .split-text { order: 0; }
    .feature-band { background-attachment: scroll; min-height: 260px; }
    .cards-grid, .reviews-grid { grid-template-columns: 1fr; }
    .slider-track .review-card { flex: 0 0 100%; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-list li { grid-template-columns: 1fr; gap: 2px; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .btn { width: 100%; text-align: center; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { width: 100%; }
}
