/* wordpressfrombuilder.com — WordPress-inspired, WP blue + warm gray */

:root {
  --wp-blue: #2271b1;
  --wp-blue-dark: #135e96;
  --wp-blue-light: #72aee6;
  --wp-blue-pale: #e8f0f7;
  --bg: #f6f7f7;
  --bg-soft: #f0f0f1;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --border: #dcdcde;
  --border-strong: #c3c4c7;
  --text: #1d2327;
  --text-body: #3c434a;
  --muted: #646970;
  --text-faint: #787c82;
  --success: #00a32a;
  --warning: #dba617;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  --radius: 4px;
  --radius-lg: 8px;
  --content-max: 72rem;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.65rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p { margin: 0 0 1em; }

a {
  color: var(--wp-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

a:hover { color: var(--wp-blue-dark); }

img, svg { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: -999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 16px; top: 16px; width: auto; height: auto;
  padding: 10px 16px; background: var(--wp-blue); color: #fff;
  border-radius: var(--radius); z-index: 1000; text-decoration: none;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.brand-logo { height: 36px; width: auto; max-width: min(320px, 70vw); }

.nav-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem;
  font-size: 0.875rem; font-weight: 500;
}

.nav-links a {
  color: var(--muted); text-decoration: none;
  padding: 0.4rem 0.75rem; border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--wp-blue);
  background: var(--wp-blue-pale);
}

.wrap, .page-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2.75rem;
}

.hero .wrap { padding-top: 0; padding-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wp-blue);
  background: var(--wp-blue-pale);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.hero h1 em { color: var(--wp-blue); font-style: normal; }

.lede {
  font-size: 1.125rem;
  color: var(--text-body);
  max-width: 42rem;
  line-height: 1.7;
}

.hero-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  max-width: 36rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--wp-blue);
  font-weight: 700;
}

.stat span { font-size: 0.8rem; color: var(--muted); }

.section { padding: 2.75rem 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--border { border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 2rem; max-width: 42rem; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }

.callout {
  background: var(--wp-blue-pale);
  border-left: 4px solid var(--wp-blue);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.callout h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.callout p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

caption {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 0 0 0.75rem;
  caption-side: top;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
tbody tr:hover { background: var(--bg-soft); }

.rating { color: var(--warning); white-space: nowrap; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.method {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.method strong { display: block; color: var(--text); margin-bottom: 0.4rem; }
.method p { margin: 0; font-size: 0.9rem; }

.tool-grid { display: flex; flex-direction: column; gap: 2rem; }

.tool-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.tool-rank {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--wp-blue-light);
  line-height: 1;
  padding-top: 0.15rem;
}

.tool-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  font-size: 0.85rem; color: var(--muted);
  margin-bottom: 0.75rem;
}

.tool-meta strong { color: var(--text); }

.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.pros-cons h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.pros-cons ul { margin: 0; padding-left: 1.2rem; }
.pros-cons li { margin-bottom: 0.35rem; }

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover { background: var(--bg-soft); color: var(--text); }

.btn--accent {
  background: var(--wp-blue);
  border-color: var(--wp-blue-dark);
  color: #fff;
}

.btn--accent:hover { background: var(--wp-blue-dark); color: #fff; }

.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--wp-blue);
  font-weight: 700;
}

.faq-item[open] summary::after { content: "−"; }

.faq-answer { padding: 0 1.25rem 1rem; font-size: 0.95rem; }
.faq-answer p:last-child { margin-bottom: 0; }

.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--wp-blue) 0%, var(--wp-blue-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 32rem; margin-left: auto; margin-right: auto; }
.cta-banner .btn--accent { background: #fff; color: var(--wp-blue); border-color: #fff; }
.cta-banner .btn--accent:hover { background: var(--wp-blue-pale); }

.content-page { padding: 2.5rem 0 3rem; }
.content-page .lead { color: var(--muted); font-size: 0.95rem; }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; }

.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.guide-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.guide-card:hover {
  border-color: var(--wp-blue-light);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.guide-card h3 { color: var(--wp-blue); margin-bottom: 0.4rem; }
.guide-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  background: var(--wp-blue-pale);
  color: var(--wp-blue);
  margin-bottom: 0.5rem;
}

.badge--free { background: #edfaef; color: var(--success); }
.badge--paid { background: #fcf0e3; color: #996800; }

.site-footer {
  background: var(--text);
  color: #c3c4c7;
  margin-top: auto;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}

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

.footer-brand img { margin-bottom: 0.75rem; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { margin: 0; line-height: 1.6; color: #a7aaad; }

.footer-col h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f0f0f1;
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: #c3c4c7; text-decoration: none; }
.footer-col a:hover { color: #fff; }

.footer-network {
  border-top: 1px solid #3c434a;
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-network h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f0f0f1;
  margin-bottom: 0.75rem;
}

.footer-network-links {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem;
  line-height: 1.8;
}

.footer-network-links a { color: #a7aaad; text-decoration: none; font-size: 0.8rem; }
.footer-network-links a:hover { color: #fff; }
.footer-network-links span { color: #50575e; }

.footer-sister {
  background: rgba(34, 113, 177, 0.15);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.footer-sister a { color: var(--wp-blue-light); }

.footer-bottom {
  border-top: 1px solid #3c434a;
  padding-top: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #787c82;
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; }
  .tool-card { grid-template-columns: 1fr; }
  .tool-rank { font-size: 1.25rem; }
  .nav-links { width: 100%; }
}
