/*
Theme Name: Skup Aut Kalisz
Theme URI: https://skup-aut-kalisz.pl
Description: Lekki motyw dla skupu samochodów w Kaliszu i Wielkopolsce południowej. Granat + szmaragd, sekcje strony głównej, formularz wyceny ze zdjęciami, ustawienia kontaktu w Customizerze.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: skak
*/

:root {
  --navy: #0b1f3a;
  --navy-2: #13294b;
  --green: #10b981;
  --green-d: #059669;
  --green-soft: #e7f8f1;
  --ink: #0f172a;
  --muted: #5b6b82;
  --line: #e3e8ef;
  --bg: #f6f8fb;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(11, 31, 58, .28);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-d); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: var(--bg); }
.section--navy { background: var(--navy); color: #dbe4f0; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green-d); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section--navy .eyebrow { color: var(--green); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--navy .section-head p { color: #a9b8cc; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 800; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-d); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn svg { width: 18px; height: 18px; }

/* Topbar + header */
.topbar { background: var(--navy); color: #a9b8cc; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar__left { display: flex; gap: 22px; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo__mark { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.logo__mark svg { width: 26px; height: 26px; color: var(--green); }
.logo__text { font-weight: 800; font-size: 1.15rem; line-height: 1; letter-spacing: -.01em; }
.logo__text small { display: block; font-size: .7rem; letter-spacing: .28em; color: var(--green-d); margin-top: 5px; }
.custom-logo { max-height: 52px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav .current-menu-item > a { background: var(--green-soft); color: var(--green-d); }
.nav .sub-menu { display: none; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #cfd9e6; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-img, none); background-size: cover; background-position: center; opacity: .18; }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.35), transparent 65%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: clamp(56px, 8vw, 100px) 0; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__lead { font-size: 1.15rem; max-width: 560px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--white); font-weight: 600; }
.ticks svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.quick-form { background: var(--white); color: var(--ink); border-radius: 24px; padding: 32px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.quick-form h2 { font-size: 1.5rem; margin-bottom: 4px; }
.quick-form > p { color: var(--muted); font-size: .95rem; }
.quick-form .badge { display: inline-block; background: var(--green-soft); color: var(--green-d); font-weight: 800; font-size: .75rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .04em; }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: var(--bg); color: var(--ink); transition: border-color .15s, background .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); background: var(--white); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field small { color: var(--muted); font-size: .8rem; }
.consent { display: flex; gap: 10px; font-size: .78rem; color: var(--muted); margin: 6px 0 18px; line-height: 1.5; }
.consent input { margin-top: 3px; flex: none; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.form-msg--ok { background: var(--green-soft); color: var(--green-d); }
.form-msg--err { background: #fdecec; color: #b42318; }
.quick-form .btn, .contact-form .btn { width: 100%; }

/* Stats strip */
.stats { margin-top: -1px; background: var(--white); border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; display: flex; gap: 14px; align-items: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft); color: var(--green-d); display: grid; place-items: center; flex: none; }
.stat__icon svg { width: 24px; height: 24px; }
.stat strong { display: block; font-size: 1.05rem; color: var(--navy); }
.stat span { font-size: .85rem; color: var(--muted); }

/* Steps timeline */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 10px, transparent 10px 18px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__num { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; background: var(--white); border: 2px solid var(--green); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: var(--navy); position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--bg); }
.step p { color: var(--muted); font-size: .95rem; }

/* Offer bento */
.notice { display: flex; gap: 14px; align-items: flex-start; background: #fff7e6; border: 1px solid #fde2a7; color: #7a4b00; border-radius: 14px; padding: 16px 20px; margin-bottom: 28px; font-size: .95rem; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.pill { background: var(--navy); color: var(--white); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; }
.pill--green { background: var(--green); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(210px, auto); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--green-d); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card__link { font-weight: 800; color: var(--navy); text-decoration: none; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.card__link:hover { color: var(--green-d); }
.card__link svg { width: 16px; height: 16px; }
.card--big { grid-row: span 2; background: var(--navy); color: #cfd9e6; border: 0; position: relative; overflow: hidden; }
.card--big h3 { color: var(--white); font-size: 1.6rem; }
.card--big p { color: #a9b8cc; }
.card--big .card__icon { background: rgba(16,185,129,.15); color: var(--green); }
.card--big .card__link { color: var(--green); }
.card--big::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(16,185,129,.12); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; border-radius: 24px; overflow: hidden; min-height: 420px; background: linear-gradient(160deg, var(--navy-2), var(--navy)); }
.about__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about__media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.2); }
.about__media .placeholder svg { width: 45%; height: auto; }
.about__badge { position: absolute; left: 24px; bottom: 24px; background: var(--white); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.about__badge strong { font-size: 1.8rem; color: var(--green-d); line-height: 1; }
.about__badge span { font-size: .85rem; color: var(--muted); line-height: 1.3; }

/* CTA band */
.cta-band { background: var(--green); color: var(--white); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 44px 0; }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; color: var(--white); }
.cta-band p { margin: 6px 0 0; opacity: .9; }
.cta-band__phone { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--white); }
.cta-band__phone .ring { width: 60px; height: 60px; border-radius: 50%; background: var(--white); color: var(--green-d); display: grid; place-items: center; animation: pulse 2s infinite; }
.cta-band__phone .ring svg { width: 26px; height: 26px; }
.cta-band__phone strong { font-size: clamp(1.5rem, 3vw, 2.1rem); display: block; line-height: 1.1; }
.cta-band__phone small { opacity: .9; font-weight: 600; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* SEO text */
.text-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; color: var(--muted); }
.text-cols h3 { color: var(--ink); }

/* Cities */
.cities { display: flex; flex-wrap: wrap; gap: 10px; }
.cities a, .cities span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: #dbe4f0; text-decoration: none; font-size: .9rem; font-weight: 600; transition: background .15s, border-color .15s; }
.cities a:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.cities .is-main { background: var(--green); border-color: var(--green); color: var(--white); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card__img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy-2), var(--navy)); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--green-d); }
.post-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.center { text-align: center; margin-top: 40px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.why { background: var(--navy); color: #cfd9e6; border-radius: 24px; padding: 34px; position: sticky; top: 110px; }
.why h3 { color: var(--white); font-size: 1.4rem; }
.why ul { list-style: none; padding: 0; margin: 0; }
.why li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.why li:last-child { border: 0; }
.why svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; transition: border-color .15s; }
.faq details[open] { border-color: var(--green); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green-d); display: grid; place-items: center; font-size: 1.2rem; font-weight: 800; line-height: 1; }
.faq details[open] summary::after { content: "–"; background: var(--green); color: var(--white); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; }
.contact-form { background: var(--white); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-tile { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.info-tile .stat__icon { width: 44px; height: 44px; }
.info-tile strong { display: block; color: var(--navy); }
.info-tile a { color: var(--ink); text-decoration: none; font-weight: 600; }
.info-tile a:hover { color: var(--green-d); }
.info-tile p { margin: 0; color: var(--muted); }
.info-tile--green { background: var(--green); border-color: var(--green); color: var(--white); }
.info-tile--green strong, .info-tile--green a, .info-tile--green p { color: var(--white); }
.info-tile--green .stat__icon { background: rgba(255,255,255,.2); color: var(--white); }

/* Footer */
.site-footer { background: #071528; color: #8b9ab0; font-size: .92rem; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #cfd9e6; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .logo { color: var(--white); margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); text-align: center; padding: 20px 0; font-size: .82rem; }

/* Mobile call bar + whatsapp */
.callbar { display: none; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--white); display: grid; place-items: center; box-shadow: 0 10px 25px -6px rgba(0,0,0,.35); }
.wa-float svg { width: 30px; height: 30px; }

/* Cookie bar */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 70; max-width: 380px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); font-size: .85rem; color: var(--muted); display: none; }
.cookie.is-visible { display: block; }
.cookie__actions { display: flex; gap: 8px; margin-top: 12px; }
.cookie .btn { padding: 9px 16px; font-size: .82rem; }

/* Inner pages */
.page-hero { background: var(--navy); color: #a9b8cc; padding: 56px 0; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0; }
.page-hero .breadcrumbs { font-size: .85rem; margin-bottom: 10px; }
.page-hero .breadcrumbs a { color: var(--green); text-decoration: none; }
.entry { max-width: 780px; margin: 0 auto; }
.entry h2 { font-size: 1.7rem; margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry img { border-radius: 14px; }
.entry blockquote { border-left: 4px solid var(--green); margin: 1.5em 0; padding: 4px 0 4px 20px; color: var(--muted); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--green); color: var(--white); border-color: var(--green); }

/* Responsive */
@media (max-width: 1024px) {
  .hero .container, .about, .faq-wrap, .contact { grid-template-columns: 1fr; }
  .why { position: static; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card--big { grid-row: auto; grid-column: span 2; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .posts { grid-template-columns: 1fr 1fr; }
  .header-cta .btn span { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; display: none; box-shadow: var(--shadow); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .topbar__right { display: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .text-cols, .site-footer .container { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { padding-bottom: 64px; }
  .ticks, .field-row, .bento, .posts, .stats .container { grid-template-columns: 1fr; }
  .card--big { grid-column: auto; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .quick-form, .contact-form { padding: 24px; }
  .header-cta .btn { display: none; }
  .topbar { display: none; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 0; color: var(--white); font-weight: 800; text-decoration: none; background: var(--green); }
  .callbar a + a { background: var(--navy); }
  .callbar svg { width: 20px; height: 20px; }
  .wa-float { display: none; }
  .cookie { left: 12px; right: 12px; bottom: 76px; max-width: none; }
  .about__media { min-height: 300px; }
}
