/*
Theme Name: Warsztat FPV
Theme URI: https://warsztatfpv.pl/
Author: subtilisweb (Cyryl Motylewski)
Description: Motyw strony Warsztat FPV - szkola budowy dronow FPV w Przezmierowie k. Poznania. Konwersja statycznego designu na WordPress z dynamicznym blogiem.
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: warsztatfpv
*/

/* Warsztat FPV - style strony www */
:root {
  --navy: #14213D;
  --navy-2: #1d2d52;
  --orange: #FB8500;
  --orange-dark: #d97300;
  --teal: #2EC4B6;
  --paper: #FDFCF9;
  --sand: #F4F0E9;
  --ink: #22293b;
  --muted: #5b6478;
  --line: #e2ddd3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #b35f00; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Krytyczne: inline display nadpisuje atrybut hidden */
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
section { padding: 72px 0; overflow-x: hidden; }
section.alt { background: var(--sand); }
.kicker {
  display: inline-block; color: #b35f00; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 10px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 252, 249, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 22px; padding: 14px 0; position: relative; }
.nav .logo { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.nav .logo img { width: 40px; height: 40px; }
.nav ul.menu { display: flex; gap: 22px; list-style: none; margin-left: auto; align-items: center; }
.nav ul.menu a { color: var(--navy); font-weight: 600; font-size: 0.95rem; }
.nav ul.menu a:hover { color: var(--orange-dark); text-decoration: none; }
.nav ul.menu li.current-menu-item a, .nav ul.menu li.current_page_item a { color: var(--orange-dark); }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.nav-phone:hover { color: var(--orange-dark); text-decoration: none; }
.nav .cta { background: var(--orange); color: var(--navy); padding: 10px 20px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.nav .cta:hover { background: var(--orange-dark); text-decoration: none; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--navy);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--navy); position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Breadcrumbs */
.breadcrumbs { font-size: .85rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--orange-dark); }

/* Hero */
.hero { padding: 84px 0 72px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--orange-dark); }
.hero p.sub { font-size: 1.2rem; color: var(--muted); margin: 18px 0 28px; }
.hero .img-wrap img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge { background: var(--sand); border: 1px solid var(--line); color: var(--navy); border-radius: 999px; padding: 7px 14px; font-size: 0.85rem; font-weight: 600; }

/* Buttons */
.btn { display: inline-block; padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 1.02rem; transition: transform .12s ease, background .12s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); background: transparent; margin-left: 12px; }
button.btn { background: transparent; }
.btn-primary { background: var(--orange); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 4px 14px rgba(20,33,61,.05); max-width: 100%;
}
.card .num { font-size: 2rem; font-weight: 800; color: var(--orange-dark); }
.card img.icon { height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; width: 100%; }
.card img.icon[src*="pilot-fpv-gogle"] { object-position: center top; }
.post-hero { width: 100%; height: 380px; object-fit: cover; object-position: 50% 8%; border-radius: 14px; margin-bottom: 30px; display: block; }
@media (max-width: 600px) { .post-hero { height: 240px; } }

/* Timeline */
.steps { counter-reset: step; display: grid; gap: 18px; max-width: 760px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.step:nth-child(even)::before { background: var(--orange); color: var(--navy); }
.step h3 { margin-bottom: 2px; }
.step p { color: var(--muted); }

/* Pricing */
.price-box {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center;
}
.price-box h2, .price-box h3 { color: #fff; }
.price-box .price { font-size: 3rem; font-weight: 800; color: var(--orange); }
.price-box .old { text-decoration: line-through; opacity: .6; font-size: 1.4rem; margin-right: 10px; color: #fff; }
.price-box ul { list-style: none; display: grid; gap: 9px; }
.price-box ul li { padding-left: 28px; position: relative; }
.price-box ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.price-note { font-size: .9rem; opacity: .75; margin-top: 12px; }

/* Tables */
table.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(20,33,61,.05); }
.tbl th { background: var(--navy); color: #fff; text-align: left; padding: 13px 16px; font-size: .95rem; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: none; }
.tbl .free { color: #0d7d70; font-weight: 700; }
.tbl .soldout { color: #c0392b; font-weight: 700; }
.tbl .full { color: var(--muted); }

/* FAQ */
details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
details summary { font-weight: 700; color: var(--navy); cursor: pointer; font-size: 1.02rem; }
details p { margin-top: 10px; color: var(--muted); }

/* Forms (CF7) */
.zapis, form.zapis { display: grid; gap: 14px; background: #fff; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.zapis label { font-weight: 600; color: var(--navy); font-size: .92rem; display: block; }
.zapis input, .zapis select, .zapis textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: var(--paper);
}
.zapis input:focus, .zapis select:focus, .zapis textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.zapis .check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); font-weight: 400; }
.zapis .check input { width: auto; margin-top: 4px; }
.wpcf7 .wpcf7-submit { cursor: pointer; }
.wpcf7-response-output { border-radius: 10px; }

/* Notices */
.notice { border-left: 5px solid var(--orange); background: #fff7ec; border-radius: 10px; padding: 18px 22px; margin: 22px 0; }
.notice.teal { border-color: var(--teal); background: #ecf9f7; }
.group-box { background: var(--sand); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 36px 36px 40px; margin-top: 28px; }
.group-box > h2 { margin-top: 4px; }
.group-box .grid3 { margin-top: 8px; }
@media (max-width: 900px) { .group-box { padding: 26px 20px 30px; } }

/* Blog meta */
.post-meta { color: var(--muted); font-size: .9rem; margin: 4px 0 20px; }
.post-cta { margin-top: 40px; }

/* Footer */
footer.site-footer { background: var(--navy); color: #cfd6e4; padding: 56px 0 32px; margin-top: 40px; }
footer.site-footer h3 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
footer.site-footer a { color: #cfd6e4; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer.site-footer .brandline { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
footer.site-footer .brandline img { width: 42px; }
footer.site-footer .legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 20px; font-size: .85rem; opacity: .7; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer.site-footer ul { list-style: none; display: grid; gap: 8px; font-size: .95rem; }

/* Soon */
.soon { position: relative; opacity: .92; }
.soon .tag { position: absolute; top: 14px; right: 14px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: 1px; }

/* Responsive */
/* Elementy telefon/CTA w liscie menu tylko dla widoku mobilnego */
@media (min-width: 901px) {
  .nav ul.menu li.menu-phone, .nav ul.menu li.menu-cta { display: none; }
}
@media (max-width: 900px) {
  .hero .container, .grid3, .grid2, .price-box, footer.site-footer .cols { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav ul.menu {
    display: none; position: absolute; top: calc(100% + 1px); left: -24px; right: -24px;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 24px 16px;
  }
  .nav ul.menu.is-open { display: flex; }
  .nav ul.menu li { border-bottom: 1px solid var(--line); }
  .nav ul.menu li:last-child { border-bottom: 0; }
  .nav ul.menu a { display: block; padding: 14px 16px; font-size: 1rem; }
  .nav ul.menu li.menu-cta { margin-top: 10px; border: 0; }
  .nav ul.menu li.menu-cta a { background: var(--orange); color: var(--navy); text-align: center; border-radius: 999px; padding: 13px; }
  .nav ul.menu li.menu-phone { border: 0; }
  .nav ul.menu li.menu-phone a { color: var(--orange-dark); font-weight: 700; }
}
@media (max-width: 640px) {
  .btn-ghost { margin-left: 0; }
  .footer .legal, footer.site-footer .legal { flex-direction: column; }
  /* Tabele: czytelniejsze + przewijanie poziome zamiast miazdzenia */
  .tbl { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .9rem; line-height: 1.45; }
  .tbl th, .tbl td { padding: 10px 12px; }
  .tbl td .full { display: block; font-size: .82rem; margin-top: 3px; }
}
@media (max-width: 400px) {
  .tbl { font-size: .84rem; }
}

/* Formularz - nota */
.zapis-note { font-size: .85rem; color: var(--muted); background: var(--sand); border-radius: 10px; padding: 12px 14px; margin: 4px 0 2px; }

/* Baner zgod (cookies / Consent Mode) */
.wf-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--navy); color: #e7ebf3; box-shadow: 0 -6px 24px rgba(0,0,0,.25); }
.wf-consent-inner { max-width: 1120px; margin: 0 auto; padding: 16px 24px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.wf-consent p { font-size: .88rem; margin: 0; max-width: 720px; line-height: 1.55; }
.wf-consent a { color: #fff; text-decoration: underline; }
.wf-consent-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.wf-consent .btn { padding: 11px 20px; font-size: .95rem; }
.wf-consent .btn { background: transparent; }
.wf-consent .btn-primary { background: var(--orange); color: var(--navy); }
.wf-consent .btn-ghost { border: 2px solid #fff; color: #fff; background: transparent; }
.wf-cookie-link { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
@media (max-width: 640px) {
  .wf-consent-inner { flex-direction: column; align-items: stretch; }
  .wf-consent-btns { justify-content: stretch; }
  .wf-consent .btn { flex: 1; text-align: center; }
}
