/*
Theme Name: Dodawanie Produktow
Theme URI: https://dodawanieproduktow.pl
Author: dodawanieproduktow.pl
Description: Motyw dla serwisu dodawanieproduktow.pl – specjalistów od dodawania produktów do sklepów e-commerce.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: dodawanieproduktow
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f5f5f4;
  --bg-light:  #fafaf9;
  --bg-dark:   #1c1917;
  --bg-darker: #292524;
  --text:      #1c1917;
  --muted:     #78716c;
  --subtle:    #a8a29e;
  --border:    #e7e5e4;
  --red:       #dc2626;
  --red-dark:  #b91c1c;
  --red-light: #fca5a5;
  --white:     #fafaf9;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

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

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--muted); font-size: 1rem; line-height: 1.8; }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 5vw; }
.section { padding: 80px 5vw; }
.section-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--red); font-family: system-ui, sans-serif;
  font-weight: 500; margin-bottom: 10px;
}

/* ── TOP BAR ── */
#top-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 7px 5vw;
  font-size: 0.72rem;
  font-family: system-ui, sans-serif;
}
.top-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.top-bar-left { color: var(--subtle); }
.top-bar-right {
  display: flex; align-items: center; gap: 6px; color: var(--muted);
}
.top-bar-dot {
  width: 5px; height: 5px;
  background: var(--red); border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.top-bar-right a {
  color: var(--text); font-weight: 600;
  letter-spacing: .02em;
}
.top-bar-right a:hover { color: var(--red); text-decoration: none; }

/* ── NAV ── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; max-width: 1100px; margin: 0 auto; padding: 0 5vw;
}
.site-logo {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}
.site-logo span { color: var(--red); }
.site-logo:hover { text-decoration: none; }

#primary-menu {
  display: flex; gap: 28px; list-style: none;
}
#primary-menu a {
  font-size: 0.8rem; color: var(--muted);
  transition: color .2s;
}
#primary-menu a:hover { color: var(--red); text-decoration: none; }

.nav-cta {
  background: var(--red); color: #fff !important;
  border: none; padding: 9px 20px;
  font-size: 0.8rem; cursor: pointer;
  font-family: system-ui, sans-serif;
  font-weight: 500; letter-spacing: .02em;
  transition: background .2s;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

.menu-toggle {
  display: none; background: none; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--text);
}

/* ── HERO ── */
.hero {
  background: var(--bg-dark);
  padding: 80px 5vw 70px;
}
.hero-two-col {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.hero-left { }
.hero-right {
  display: flex; align-items: center; justify-content: center;
}
.hero-svg { width: 100%; max-width: 420px; opacity: .92; }
.hero-tag {
  display: inline-block;
  border: 1px solid rgba(220,38,38,.35);
  color: var(--red-light);
  font-size: 0.68rem; font-family: system-ui, sans-serif;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 14px; margin-bottom: 22px;
}
.hero h1 {
  color: var(--white); margin-bottom: 16px;
}
.hero h1 em { color: var(--red); font-style: italic; }
.hero-sub {
  font-size: 1.05rem; color: #a8a29e;
  max-width: 480px; margin-bottom: 30px;
  font-family: system-ui, sans-serif;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--red); color: #fff;
  padding: 13px 30px; font-size: 0.85rem;
  font-family: system-ui, sans-serif;
  font-weight: 500; border: none; cursor: pointer;
  transition: background .2s; display: inline-block;
}
.btn-primary:hover { background: var(--red-dark); text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent; color: #a8a29e;
  border: 1px solid #44403c;
  padding: 13px 30px; font-size: 0.85rem;
  font-family: system-ui, sans-serif;
  transition: border-color .2s, color .2s; display: inline-block;
}
.btn-outline:hover { border-color: #78716c; color: var(--white); text-decoration: none; }

.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid #292524;
}
.stat-num {
  font-family: Georgia, serif; font-size: 2rem;
  font-weight: 400; color: var(--white);
}
.stat-label { font-size: 0.9rem; color: #78716c; font-family: system-ui, sans-serif; margin-top: 2px; }

/* ── PLATFORMS STRIP ── */
.platforms-strip {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 5vw;
}
.strip-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.strip-label {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--subtle);
  font-family: system-ui, sans-serif; white-space: nowrap;
}
.platform-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--border); background: #fff;
  padding: 5px 14px; font-size: 0.78rem;
  color: var(--text); font-family: system-ui, sans-serif;
}

/* ── WHY SECTION ── */
.why-section { background: var(--bg-light); }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start; margin-top: 40px;
}
.quote-block {
  background: var(--bg-dark); padding: 36px;
  position: relative; overflow: hidden; margin-top: 28px;
}
.quote-block::before {
  content: '"';
  font-family: Georgia, serif;
  position: absolute; top: -16px; left: 20px;
  font-size: 8rem; color: rgba(220,38,38,.12); line-height: 1;
}
.quote-block blockquote {
  font-family: Georgia, serif; font-size: 1.1rem;
  color: var(--white); line-height: 1.45;
  position: relative; z-index: 1;
}
.why-features { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.why-feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.12);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-body h4 {
  font-family: system-ui, sans-serif; font-size: 1rem;
  font-weight: 600; color: var(--text); margin-bottom: 4px;
}
.feature-body p { font-size: 0.92rem; margin: 0; }

/* ── PRICING ── */
.pricing-section { background: var(--bg); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 36px;
  align-items: stretch;
}
.price-card {
  background: var(--bg-light); border: 1px solid var(--border);
  padding: 26px 20px; position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--red); border-width: 1.5px; }
.featured-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff;
  font-size: 0.72rem; padding: 3px 14px;
  font-family: system-ui, sans-serif; font-weight: 500;
  letter-spacing: .04em; white-space: nowrap;
}
.price-btn {
  display: block; width: 100%; padding: 16px 13px;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); font-family: system-ui, sans-serif;
  font-size: 0.88rem; cursor: pointer; transition: all .2s;
  text-align: center; margin-top: auto; text-decoration: none;
}
.price-btn:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.price-btn.red { background: var(--red); color: #fff !important; border-color: var(--red); font-weight: 500; }
.price-btn.red:hover { background: var(--red-dark); text-decoration: none; }

/* post card fully clickable */
.post-card-link { display: block; color: inherit; text-decoration: none; }
.post-card-link:hover { text-decoration: none; }
.post-card-link:hover .post-title { color: var(--red); }

.price-card-name {
  font-family: system-ui, sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--text); margin-bottom: 14px;
}
.price-scale { display: flex; flex-direction: column; gap: 5px; margin-bottom: 6px; }
.price-row { display: flex; justify-content: space-between; font-size: 0.9rem; font-family: system-ui, sans-serif; }
.price-qty { color: var(--subtle); }
.price-val { color: var(--text); font-weight: 500; }
.price-unit { font-size: 0.78rem; color: var(--subtle); font-family: system-ui, sans-serif; margin-bottom: 16px; }
.price-divider { height: 1px; background: var(--border); margin: 14px 0; }
.price-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 9px; margin-bottom: 20px; flex: 1;
}
.price-features li {
  font-size: 0.9rem; color: var(--muted);
  display: flex; gap: 8px; line-height: 1.4;
  font-family: system-ui, sans-serif;
}
.price-features li.no { color: #c4bfbb; }
.pcheck { color: #16a34a; flex-shrink: 0; font-size: 1rem; }
.pcross { color: #d1cdc9; flex-shrink: 0; font-size: 1rem; }
.pricing-note {
  margin-top: 20px; padding: 14px 18px;
  background: rgba(220,38,38,.05);
  border: 1px solid rgba(220,38,38,.15);
  font-size: 0.88rem; color: var(--muted);
  font-family: system-ui, sans-serif; line-height: 1.6;
}

/* ── PROCESS ── */
.process-section { background: var(--bg-light); }
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 40px;
}
.step-card {
  background: var(--bg); border: 1px solid var(--border); padding: 24px 20px;
}
.step-num {
  font-family: Georgia, serif; font-size: 2.5rem;
  color: rgba(220,38,38,.15); line-height: 1; margin-bottom: 12px;
}
.step-card h4 {
  font-family: system-ui, sans-serif; font-size: 0.88rem;
  font-weight: 600; margin-bottom: 8px;
}
.step-card p { font-size: 0.8rem; }

/* ── SEO TEXT ── */
.seo-section { background: var(--bg); }
.seo-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; margin-top: 40px;
}
.seo-col h3 {
  font-family: system-ui, sans-serif; font-size: 1rem;
  font-weight: 600; color: var(--text); margin-bottom: 12px;
}
.seo-col p { font-size: 0.85rem; }

/* ── BLOG ── */
.blog-section { background: var(--bg-light); }
.blog-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.blog-link {
  font-size: 0.8rem; color: var(--red);
  font-family: system-ui, sans-serif;
}
.posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.post-card {
  background: var(--bg); border: 1px solid var(--border);
  transition: transform .2s;
}
.post-card:hover { transform: translateY(-3px); }
.post-thumb {
  height: 160px; background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
}
.post-thumb-inner {
  width: 36px; height: 36px;
  background: var(--red); transform: rotate(45deg);
}
.post-body { padding: 20px; }
.post-cat {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--red);
  font-family: system-ui, sans-serif; margin-bottom: 8px;
}
.post-title {
  font-family: Georgia, serif; font-size: 1rem;
  line-height: 1.35; color: var(--text); margin-bottom: 10px;
}
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--red); text-decoration: none; }
.post-meta { font-size: 0.72rem; color: var(--subtle); font-family: system-ui, sans-serif; }
.post-excerpt { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }

/* ── CTA SECTION ── */
.cta-section {
  background: var(--red); padding: 72px 5vw; text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 10px; }
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: 28px; font-family: system-ui, sans-serif; }
.cta-btn {
  background: var(--bg-light); color: var(--red);
  border: none; padding: 16px 44px;
  font-family: Georgia, serif; font-size: 1rem;
  cursor: pointer; font-weight: 700; display: inline-block;
  transition: background .2s;
}
.cta-btn:hover { background: #fff; color: var(--red); text-decoration: none; }

/* ── SINGLE POST ── */
.single-post-hero {
  background: var(--bg-dark); padding: 60px 5vw 50px;
}
.single-post-hero .post-cat { margin-bottom: 14px; }
.single-post-hero h1 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
.single-post-hero .post-meta { color: #78716c; margin-top: 14px; font-family: system-ui, sans-serif; font-size: 0.8rem; }

.post-content-wrap {
  max-width: 720px; margin: 0 auto; padding: 60px 5vw;
}
.post-content h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.post-content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.2rem; }
.post-content p { margin-bottom: 1.2rem; font-size: 0.95rem; color: var(--text); line-height: 1.8; }
.post-content ul, .post-content ol { margin: 0 0 1.2rem 1.5rem; }
.post-content li { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 6px; }
.post-content a { color: var(--red); }
.post-content strong { color: var(--text); }
.post-content img { margin: 2rem auto; border: 1px solid var(--border); }

/* ── SIDEBAR ── */
.content-sidebar-wrap {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 48px; max-width: 1100px; margin: 0 auto; padding: 60px 5vw;
}
.widget { margin-bottom: 36px; }
.widget-title {
  font-family: system-ui, sans-serif; font-size: 0.75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--red);
}
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.widget ul li a { color: var(--muted); }
.widget ul li a:hover { color: var(--red); }

/* ── FOOTER ── */
#site-footer { background: var(--bg-dark); padding: 60px 5vw 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px; max-width: 1100px; margin-left: auto; margin-right: auto;
}
.footer-logo { color: var(--white) !important; }
.footer-logo span { color: var(--red); }
.footer-brand .site-logo { display: block; margin-bottom: 12px; font-size: 0.9rem; }
.footer-brand p { font-size: 0.78rem; color: #78716c; line-height: 1.6; }
.footer-col h5 {
  font-family: system-ui, sans-serif; font-size: 0.75rem;
  font-weight: 700; color: var(--white); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.78rem; color: #78716c; transition: color .2s; }
.footer-col ul a:hover { color: var(--red); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #292524; padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: #57534e;
  max-width: 1100px; margin: 0 auto; font-family: system-ui, sans-serif;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: #57534e; }
.footer-bottom a:hover { color: var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-two-col { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .why-grid, .seo-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  #primary-menu { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-light); border-bottom: 1px solid var(--border); padding: 16px 5vw; gap: 16px; }
  #primary-menu.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
