/* ============================================================
   Woneed.com — Global Stylesheet
   Pure static, no external fonts / no CDN resources.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --text: #1c2330;
  --text-muted: #5b6472;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --border: #e3e8ef;
  --card: #ffffff;
  --card-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  --radius: 12px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo a { color: var(--primary); }
.logo a:hover { text-decoration: none; }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}
.main-nav a:hover { color: var(--primary); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
}
.hero .meta-row {
  margin-top: 20px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section h2 {
  font-size: 26px;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.section .section-sub {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: #eef2ff;
  border-radius: 999px;
  padding: 3px 10px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.card h3 { font-size: 19px; line-height: 1.35; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--primary); text-decoration: none; }
.card p { color: var(--text-muted); font-size: 15px; flex-grow: 1; }
.card .card-meta { font-size: 13px; color: var(--text-muted); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  padding: 20px 0 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Article ---------- */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 0 60px;
}
.article h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}
.article .byline {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article h2 {
  font-size: 23px;
  margin: 36px 0 14px;
  letter-spacing: -0.3px;
}
.article h3 {
  font-size: 18px;
  margin: 24px 0 10px;
}
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin-bottom: 8px; }

.callout {
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 22px 0;
}
.callout.warn { border-left-color: #d97706; background: #fffbeb; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 22px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
}
th, td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--bg-soft); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; margin: 22px 0; }
.step {
  position: relative;
  padding: 0 0 22px 52px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-top: 4px; }

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  margin: 18px 0;
}
.checklist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fff;
}
.faq-item h3 { font-size: 17px; margin-bottom: 8px; }

/* ---------- Ad slots ---------- */
.ad-slot {
  min-height: 260px;
  margin: 32px 0;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  padding: 12px;
  overflow: hidden;
}
.ad-slot.inset { min-height: 200px; }

/* ---------- Related ---------- */
.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 32px 0;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--primary); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111827;
  color: #f3f4f6;
  padding: 18px 20px;
  z-index: 100;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.cookie-inner p { max-width: 640px; font-size: 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.btn-accept { background: var(--primary); color: #fff; }
.btn-reject { background: #374151; color: #fff; }
.btn-manage { background: transparent; color: #d1d5db; border: 1px solid #4b5563 !important; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 32px 0 60px; }
.legal h1 { font-size: 30px; margin-bottom: 12px; }
.legal h2 { font-size: 20px; margin: 28px 0 10px; }
.legal p, .legal li { margin-bottom: 12px; }
.legal ul, .legal ol { margin-left: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero h1 { font-size: 28px; }
  .article h1 { font-size: 25px; }
  .main-nav { gap: 14px; }
  .card-grid { grid-template-columns: 1fr; }
}
