/* =========================================================
   WorkRights AI — styles
   Colours: navy (#0f1f3d) + gold (#c9a227) = legal trust
   ========================================================= */

:root {
  --navy: #0f1f3d;
  --navy-2: #16294f;
  --navy-3: #1f3a6b;
  --gold: #c9a227;
  --gold-dark: #a8841c;
  --gold-light: #f4e3b0;
  --ink: #1c2a44;
  --muted: #5c6b85;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --line: #e2e8f2;
  --danger: #b3382c;
  --ok: #1e7d4f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 31, 61, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 31, 61, 0.16);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container { width: min(1160px, 92vw); margin: 0 auto; }
.narrow { width: min(860px, 92vw); }

.gold { color: var(--gold-dark); }

img { max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(180deg, #d9b53c, var(--gold));
  color: #1a1400;
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.35);
}
.btn-gold:hover { background: linear-gradient(180deg, #e3c14f, var(--gold-dark)); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy-3);
}
.btn-outline:hover { background: var(--bg-alt); }

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.92rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 0;
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
}
.brand-text { font-size: 1.1rem; letter-spacing: -0.01em; }

.main-nav { display: flex; gap: 1.2rem; margin-left: auto; }
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.12s ease;
}
.main-nav a:hover { color: var(--navy); }

.header-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 3px;
  background: var(--navy);
  border-radius: 3px;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(201, 162, 39, 0.12), transparent 60%),
    linear-gradient(180deg, #f6f8fd, #ffffff);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  padding: 4.5rem 0 4rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 0 0 0.9rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
  color: var(--navy);
}

.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 34rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0; }

.hero-points li {
  padding: 0.35rem 0;
  color: var(--ink);
  font-weight: 500;
}

.urgency-card {
  background: var(--navy);
  color: #eef2fb;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
}
.urgency-card h3 { color: var(--gold); margin: 0 0 0.8rem; font-size: 1.25rem; }
.urgency-card p { margin: 0 0 0.9rem; }
.urgency-card .small { color: #c3cde2; font-size: 0.9rem; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy); color: #dfe7f5; }
.trust-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 1.1rem 0;
  font-size: 0.92rem;
}
.trust-list strong { color: var(--gold); }

/* ---------- Sekcje ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  margin: 0 0 1.1rem;
  line-height: 1.25;
}

.section-sub {
  color: var(--muted);
  max-width: 46rem;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.center-note {
  text-align: center;
  color: var(--muted);
  max-width: 46rem;
  margin: 2rem auto 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--navy); margin-top: 0; }
.card p { margin-bottom: 0; }

/* ---------- Kalkulator ---------- */
.calc-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.calc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.2rem; }
.calc-form label { font-size: 0.9rem; font-weight: 600; color: var(--navy); display: block; }
.calc-form input {
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
}
.calc-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.2); }
.form-hint { font-size: 0.82rem; color: var(--muted); margin: 0.8rem 0 0; text-align: center; }

/* ---------- Formularz sprawy ---------- */
.case-form label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
.case-form input,
.case-form select,
.case-form textarea {
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  background: #fff;
}
.case-form input:focus, .case-form select:focus, .case-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.2);
}

.calc-result {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1.5px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.calc-result h3 { margin-top: 0; color: var(--navy); }
.calc-deadline {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  background: var(--bg-alt);
  display: inline-block;
  margin: 0.4rem 0 1rem;
}
.calc-deadline.ok { color: var(--ok); background: #eaf6ef; }
.calc-deadline.warn { color: #a86a00; background: #fdf3dd; }
.calc-deadline.danger { color: var(--danger); background: #fbeeec; }
.calc-result ul { list-style: disc; padding-left: 1.2rem; }
.calc-result li { margin: 0.3rem 0; }
.calc-cta { margin-top: 1.2rem; }

/* ---------- Kroki ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.steps-single { grid-template-columns: repeat(2, 1fr); margin-top: 1rem; }
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.step-num {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}
.steps h3 { margin: 0 0 0.5rem; color: var(--navy); font-size: 1.05rem; }
.steps p { margin: 0; font-size: 0.94rem; color: var(--muted); }

.center-cta { text-align: center; margin-top: 2.2rem; }

/* ---------- Pakiety ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }

.plan {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}

.plan-featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.plan-ribbon {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a1400;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-head h3 { margin: 0; color: var(--navy); font-size: 1.3rem; }
.plan-for { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 1.2rem; }

.plan-price { font-size: 2.4rem; font-weight: 800; color: var(--navy); margin-bottom: 1.2rem; }
.plan-price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }

.plan-list { flex: 1; margin-bottom: 1.5rem; }
.plan-list li { padding: 0.45rem 0 0.45rem 1.7rem; position: relative; font-size: 0.95rem; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 800; }

.plan-foot { font-size: 0.8rem; color: var(--muted); margin: 0.9rem 0 0; text-align: center; }

.pricing-note {
  margin-top: 2rem;
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  text-align: center;
  color: #4a3c00;
}

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.compare-col { border-radius: var(--radius); padding: 1.6rem; }
.compare-firm { background: var(--bg-alt); border: 1px dashed var(--line); }
.compare-us { background: var(--navy); color: #eef2fb; box-shadow: var(--shadow-lg); }
.compare-col h3 { margin-top: 0; }
.compare-us h3 { color: var(--gold); }
.compare-col li { padding: 0.35rem 0; font-size: 0.98rem; }
.compare-firm strong { color: var(--danger); }
.compare-us strong { color: var(--gold); }

/* ---------- FAQ ---------- */
.faq-list { text-align: left; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  padding: 0.2rem 1.2rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 1rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 1rem;
  font-size: 1.3rem;
  color: var(--gold-dark);
  font-weight: 800;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); padding-bottom: 1rem; margin: 0; }

/* ---------- Kontakt ---------- */
.contact-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--navy); color: #c3cde2; margin-top: 0; }
.footer-inner { padding: 2.5rem 0 1.2rem; display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2rem; align-items: start; }
.footer-inner .brand-text { color: #fff; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { text-decoration: none; color: #c3cde2; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { font-size: 0.8rem; line-height: 1.55; color: #93a1c0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1rem 0; }
.footer-bottom p { margin: 0; font-size: 0.85rem; }

.small { font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3rem 0; gap: 2rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan-featured { transform: none; }
  .calc-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.6rem 0; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .grid-2, .compare, .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .trust-list { flex-direction: column; gap: 0.4rem; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
