/* ═══════════════════════════════════════════════
   Staveo Theme — Global Styles
   ═══════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --sv-blue:       #2563eb;
  --sv-blue-dark:  #1d4ed8;
  --sv-blue-light: #eff6ff;
  --sv-yellow:     #f59e0b;
  --sv-dark:       #0f172a;
  --sv-gray-900:   #1e293b;
  --sv-gray-700:   #334155;
  --sv-gray-600:   #475569;
  --sv-gray-500:   #64748b;
  --sv-gray-300:   #cbd5e1;
  --sv-gray-100:   #f1f5f9;
  --sv-gray-50:    #f8fafc;
  --sv-white:      #ffffff;
  --sv-border:     #e2e8f0;
  --sv-radius:     16px;
  --sv-radius-sm:  10px;
  --sv-shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --sv-shadow-lg:  0 8px 32px rgba(0,0,0,.12);
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  color: var(--sv-dark);
  background: var(--sv-white);
  line-height: 1.65;
  font-size: 16px;
  margin: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sv-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout wrapper ── */
.sv-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.sv-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sv-border);
}
.sv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.sv-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.sv-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--sv-dark);
  letter-spacing: -0.5px;
}
.sv-logo-text .sv-logo-v {
  color: var(--sv-blue);
}
.sv-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sv-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--sv-gray-600);
  padding: 6px 12px;
  border-radius: var(--sv-radius-sm);
  transition: color .15s, background .15s;
  text-decoration: none;
}
.sv-nav a:hover,
.sv-nav .current-menu-item > a {
  color: var(--sv-dark);
  background: var(--sv-gray-100);
}
.sv-header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--sv-radius-sm);
  text-decoration: none;
  transition: background .15s, color .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
}
.sv-btn-ghost {
  color: var(--sv-gray-600);
  background: transparent;
}
.sv-btn-ghost:hover { background: var(--sv-gray-100); color: var(--sv-dark); text-decoration: none; }
.sv-btn-primary {
  background: var(--sv-blue);
  color: var(--sv-white);
  box-shadow: 0 1px 3px rgba(37,99,235,.3);
}
.sv-btn-primary:hover { background: var(--sv-blue-dark); text-decoration: none; box-shadow: 0 4px 12px rgba(37,99,235,.4); }

/* mobile burger */
.sv-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--sv-dark);
}
.sv-mobile-menu {
  display: none;
  background: var(--sv-white);
  border-top: 1px solid var(--sv-border);
  padding: 16px 24px 20px;
  flex-direction: column;
  gap: 4px;
}
.sv-mobile-menu.open { display: flex; }
.sv-mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--sv-gray-600);
  padding: 10px 12px;
  border-radius: var(--sv-radius-sm);
  text-decoration: none;
}
.sv-mobile-menu a:hover { background: var(--sv-gray-100); color: var(--sv-dark); }
.sv-mobile-menu .sv-btn-primary {
  margin-top: 8px;
  text-align: center;
  padding: 12px 20px;
}

/* ── ═══════════════════════════════════════════
   PAGE CONTENT
   ═══════════════════════════════════════════ */
.sv-page {
  min-height: 60vh;
}

/* ── ═══════════════════════════════════════════
   CONTENT BLOCKS (edytowalne z Gutenberg)
   ═══════════════════════════════════════════ */

/* Hero sekcja */
.sv-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: white;
  text-align: center;
  padding: 96px 24px 80px;
}
.sv-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 auto 20px;
  max-width: 700px;
}
.sv-hero p { font-size: 1.15rem; color: #94a3b8; max-width: 540px; margin: 0 auto; }

/* Sekcja z tłem */
.sv-section         { padding: 80px 0; }
.sv-section-light   { background: var(--sv-gray-50); border-top: 1px solid var(--sv-border); border-bottom: 1px solid var(--sv-border); }
.sv-section-dark    { background: var(--sv-dark); color: white; }
.sv-section-dark p  { color: #94a3b8; }

/* Nagłówek sekcji */
.sv-section-head { margin-bottom: 48px; }
.sv-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.25;
}
.sv-section-head p { font-size: 1.05rem; color: var(--sv-gray-500); max-width: 600px; }

/* Karty */
.sv-grid { display: grid; gap: 24px; }
.sv-grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sv-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sv-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.sv-card {
  background: var(--sv-white);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 28px 24px;
}
.sv-card-dark {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
.sv-card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.sv-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.sv-card p  { font-size: 0.9rem; color: var(--sv-gray-500); line-height: 1.6; }
.sv-card-dark p { color: #94a3b8; }

/* 2-kolumnowy layout tekst + grafika */
.sv-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.sv-two-col h2 { font-size: 1.85rem; font-weight: 800; margin-bottom: 20px; line-height: 1.25; }
.sv-two-col p   { color: var(--sv-gray-500); font-size: 1.05rem; margin-bottom: 16px; }
.sv-two-col p:last-child { margin-bottom: 0; }

/* Stats box */
.sv-stats-box {
  background: linear-gradient(135deg, var(--sv-blue-light), #dbeafe);
  border-radius: 24px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sv-stat-num   { font-size: 2.4rem; font-weight: 800; color: var(--sv-blue); line-height: 1; }
.sv-stat-label { font-size: 0.9rem; color: var(--sv-gray-500); margin-top: 4px; }
.sv-stat-divider { height: 1px; background: #bfdbfe; }

/* Timeline */
.sv-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 32px;
}
.sv-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--sv-blue), #c7d2fe);
}
.sv-timeline-item {
  position: relative;
  padding: 0 0 36px 24px;
}
.sv-timeline-item:last-child { padding-bottom: 0; }
.sv-timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sv-blue);
  border: 3px solid var(--sv-white);
  box-shadow: 0 0 0 2px var(--sv-blue);
}
.sv-timeline-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--sv-blue);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.sv-timeline-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.sv-timeline-item p  { font-size: 0.9rem; color: var(--sv-gray-500); line-height: 1.6; }

/* Tech list */
.sv-tech-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sv-tech-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 500;
}
.sv-tech-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sv-blue); flex-shrink: 0; }

/* CTA banner */
.sv-cta-banner {
  text-align: center;
  padding: 96px 24px;
  background: linear-gradient(135deg, var(--sv-blue-light) 0%, #f0fdf4 100%);
}
.sv-cta-banner h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.sv-cta-banner p  { color: var(--sv-gray-500); font-size: 1.1rem; margin-bottom: 36px; }
.sv-btn-lg { font-size: 1rem; padding: 15px 36px; border-radius: 12px; }

/* ── ═══════════════════════════════════════════
   PRICING CARDS
   ═══════════════════════════════════════════ */
.sv-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.sv-pricing-card {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: all .2s;
  background: #fff;
}
.sv-pricing-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.08);
}
.sv-pricing-card.featured {
  border-color: #2563eb;
  box-shadow: 0 8px 32px rgba(37,99,235,.15);
  transform: scale(1.03);
}
.sv-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.sv-pricing-name {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}
.sv-pricing-price {
  font-size: 44px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 4px;
}
.sv-pricing-price sup {
  font-size: 20px;
  vertical-align: super;
  font-weight: 700;
}
.sv-pricing-price sub {
  font-size: 14px;
  color: #64748b;
  font-weight: 400;
}
.sv-pricing-desc {
  font-size: 13px;
  color: #64748b;
  margin: 12px 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}
.sv-pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding: 0;
}
.sv-pricing-features li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  align-items: flex-start;
}
.sv-pricing-features li::before {
  content: '✓';
  color: #16a34a;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.sv-pricing-features li.dim {
  color: #94a3b8;
}
.sv-pricing-features li.dim::before {
  content: '—';
  color: #cbd5e1;
}
@media (max-width: 900px) {
  .sv-pricing-grid { grid-template-columns: 1fr; }
  .sv-pricing-card.featured { transform: none; }
}

/* ── ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.sv-footer {
  background: #f1f5f9;
  color: #475569;
  padding: 56px 0 32px;
}
.sv-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.sv-footer-brand .sv-logo-text { color: #0f172a; font-size: 20px; }
.sv-footer-brand p { font-size: 14px; margin-top: 12px; line-height: 1.7; max-width: 280px; }
.sv-footer-col h4 { font-size: 13px; font-weight: 700; color: #0f172a; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.sv-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sv-footer-col a  { font-size: 14px; color: #64748b; text-decoration: none; transition: color .15s; }
.sv-footer-col a:hover { color: #0f172a; }
.sv-footer-bottom {
  border-top: 1px solid #cbd5e1;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}
.sv-footer-bottom a { color: #64748b; }
.sv-footer-bottom a:hover { color: #0f172a; }

/* Block editor overrides for footer */
.sv-footer .wp-block-group { padding: 0; margin: 0; }
.sv-footer .sv-footer-col .wp-block-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sv-footer .sv-footer-col .wp-block-heading { font-size: 13px; font-weight: 700; color: #0f172a; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.sv-footer .sv-footer-bottom .wp-block-group { padding: 0; }
.sv-footer .sv-footer-bottom p { margin: 0; }

/* ── ═══════════════════════════════════════════
   GUTENBERG editor overrides
   ═══════════════════════════════════════════ */
.entry-content h1,
.entry-content h2,
.entry-content h3 { font-weight: 800; line-height: 1.25; }
.entry-content p   { color: var(--sv-gray-500); max-width: 720px; }
.wp-block-group.sv-hero,
.wp-block-group.sv-section,
.wp-block-group.sv-cta-banner { padding-left: 0; padding-right: 0; }

/* ── ═══════════════════════════════════════════
   LEGAL PAGES (.pai-legal)
   ═══════════════════════════════════════════ */
.pai-legal { max-width: 760px; margin: 40px auto; padding: 0 24px 60px; font-size: 15px; line-height: 1.75; color: var(--sv-gray-900); }
.pai-legal h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 8px; color: var(--sv-dark); }
.pai-legal h3 { font-size: 1.1rem; font-weight: 700; margin: 32px 0 12px; color: var(--sv-dark); }
.pai-legal h4 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; color: var(--sv-dark); }
.pai-legal p  { margin: 0 0 12px; color: var(--sv-gray-700); }
.pai-legal ol, .pai-legal ul { margin: 0 0 16px; padding-left: 24px; }
.pai-legal li { margin-bottom: 8px; }
.pai-legal a  { color: var(--sv-blue); }
.pai-legal strong { color: var(--sv-dark); }
.pai-legal table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.pai-legal th, .pai-legal td { border: 1px solid var(--sv-border); padding: 10px 14px; text-align: left; }
.pai-legal th { background: var(--sv-gray-100); font-weight: 700; color: var(--sv-dark); }

/* ── ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 860px) {
  .sv-nav, .sv-header-cta .sv-btn-ghost { display: none; }
  .sv-burger { display: block; }
  .sv-two-col { grid-template-columns: 1fr; gap: 40px; }
  .sv-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .sv-footer-grid { grid-template-columns: 1fr; }
  .sv-footer-bottom { flex-direction: column; text-align: center; }
  .sv-header-cta .sv-btn-primary { padding: 8px 14px; font-size: 13px; }
}
