/*
Theme Name: Skup Aut Ciechanów
Theme URI: https://skupautciechanow.pl
Author: Skup Aut Ciechanów
Description: Lekki motyw strony skupu aut w Ciechanowie – formularz wyceny z załącznikami, zapytania w panelu, SEO lokalne.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: skupautciechanow
*/

:root {
  --red: #c8102e;
  --red-d: #9e0c24;
  --red-soft: #fdecee;
  --ink: #17181c;
  --ink-2: #23252b;
  --ink-3: #34373f;
  --sand: #f5f2ee;
  --line: #e4dfd8;
  --text: #2b2d33;
  --muted: #6b6e76;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 24px 60px -20px rgba(23, 24, 28, .28);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", 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(--text); background: var(--white); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, iframe { max-width: 100%; }
a { color: var(--red); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 999; background: var(--white); padding: 8px 14px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; 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(-1px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-d); }
.btn--line { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--line:hover { border-color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); }
.btn--white { background: var(--white); color: var(--red); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

/* Pasek górny */
.topbar { background: var(--ink); color: #c9cbd1; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; }
@media (max-width: 760px) { .topbar__mid { display: none; } }

/* Nagłówek */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.masthead__inner { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--red); color: var(--white); font-weight: 800; letter-spacing: .02em; transform: skewX(-8deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.brand__text b { font-size: 1.25rem; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.brand--light .brand__text b { color: var(--white); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.main-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.main-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav ul a:hover { color: var(--red); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 12px; }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { position: relative; color: #d4d6dc; background:
  radial-gradient(900px 420px at 85% 0%, rgba(200,16,46,.35), transparent 60%),
  repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px),
  var(--ink); padding: 84px 0 150px; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border: 60px solid rgba(200,16,46,.18); border-radius: 50%; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -.03em; }
.hero h1 span { display: block; color: #ff8a9b; }
.hero .kicker { color: #ff8a9b; }
.hero__lead { font-size: 1.12rem; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.hero__facts li { background: var(--ink-2); padding: 26px 22px; }
.hero__facts b { display: block; font-size: 2rem; color: var(--white); font-weight: 800; line-height: 1.1; }
.hero__facts span { font-size: .9rem; }
@media (max-width: 900px) { .hero { padding: 56px 0 130px; } .hero__inner { grid-template-columns: 1fr; gap: 36px; } }

/* Formularz wyceny */
.quote { margin-top: -100px; position: relative; z-index: 2; }
.quote__card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); padding: 38px; border-top: 6px solid var(--red); }
.quote__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.quote__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 6px; }
.quote__head p { color: var(--muted); margin: 0; }
.quote__phone { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.4rem; text-align: right; }
.quote__phone small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.qform { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.qform__col { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 1rem; background: var(--sand); color: var(--ink); transition: border-color .15s, background .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: var(--white); }
.field--grow { flex: 1; display: flex; flex-direction: column; }
.field--grow textarea { flex: 1; min-height: 140px; resize: vertical; }
.hp-field { position: absolute !important; left: -9999px !important; }
.files__drop { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; border: 2px dashed var(--line); border-radius: 10px; cursor: pointer; font-size: .95rem; transition: border-color .15s, background .15s; }
.files__drop:hover { border-color: var(--red); background: var(--red-soft); }
.files__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.files__drop small { color: var(--muted); }
.files__ico { font-size: 1.6rem; }
.files__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.files__list li { display: flex; align-items: center; gap: 10px; background: var(--sand); border-radius: 8px; padding: 6px 10px; font-size: .88rem; }
.files__list li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files__list button { border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.files__err { color: var(--red); font-size: .88rem; margin: 6px 0 0; }
.consent { display: flex; gap: 10px; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--red); flex: none; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.alert--ok { background: #e8f7ee; color: #146c3a; }
.alert--err { background: var(--red-soft); color: var(--red-d); }
@media (max-width: 800px) { .quote__card { padding: 26px 20px; } .qform { grid-template-columns: 1fr; } .quote__phone { text-align: left; } }

/* Sekcje */
.block { padding: 96px 0; }
.block--ink { background: var(--ink); color: #c9cbd1; }
.block--ink h2, .block--ink h3 { color: var(--white); }
.block--sand { background: var(--sand); }
.block__head { max-width: 720px; margin-bottom: 48px; }
.block__head p { color: var(--muted); }
@media (max-width: 700px) { .block { padding: 64px 0; } }

/* Dlaczego my */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.split__aside { position: sticky; top: 110px; }
.split__aside p { color: var(--muted); }
.reasons { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; gap: 14px; }
.reasons li { counter-increment: r; position: relative; padding: 24px 24px 24px 84px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.reasons li:hover { border-color: var(--red); box-shadow: 0 10px 30px -18px rgba(200,16,46,.6); }
.reasons li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 24px; top: 22px; font-weight: 800; font-size: 1.5rem; color: var(--red); }
.reasons p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split__aside { position: static; } }

/* Oś czasu */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 30px; left: 30px; right: 30px; height: 2px; background: linear-gradient(90deg, var(--red), rgba(200,16,46,.15)); }
.timeline__step { position: relative; }
.timeline__num { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 800; font-size: 1.15rem; margin-bottom: 22px; box-shadow: 0 0 0 8px var(--ink); }
@media (max-width: 800px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { top: 30px; bottom: 30px; left: 29px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--red), rgba(200,16,46,.15)); }
  .timeline__step { padding-left: 86px; }
  .timeline__num { position: absolute; left: 0; top: 0; }
}

/* Kafelki */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: var(--radius); padding: 20px; font-weight: 600; color: var(--ink); border: 1px solid var(--line); }
.tile span { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 10px; background: var(--red-soft); font-size: 1.35rem; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* Obszar */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.area p { color: var(--muted); }
.chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink); }
.chips li:first-child { background: var(--red); border-color: var(--red); color: var(--white); }
.area__map { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.area__map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .area { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq details { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; color: var(--ink); 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; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }
@media (max-width: 800px) { .faq { grid-template-columns: 1fr; } }

/* CTA */
.cta { background: var(--red); color: rgba(255,255,255,.85); padding: 56px 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin-bottom: 4px; }
.cta p { margin: 0; }

/* Podstrony */
.page { padding: 64px 0 96px; }
.entry { max-width: 820px; margin: 0 auto; }
.entry h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }

/* Stopka */
.footer { background: var(--ink); color: #a7aab2; padding: 72px 0 28px; font-size: .95rem; }
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer a { color: #e3e4e8; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer__grid .brand { margin-bottom: 16px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ink-3); font-size: .85rem; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* Pasek mobilny */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 64px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -6px 20px rgba(0,0,0,.15); }
  .mobile-bar a { padding: 18px 10px; text-align: center; font-weight: 700; text-decoration: none; background: var(--ink); color: var(--white); }
  .mobile-bar a.mobile-bar__call { background: var(--red); }
}
