:root {
  --primary: #1e3a8a;
  --secondary: #374151;
  --accent: #06b6d4;
  --light: #f9fafb;
  --border: #e5e7eb;
  --text: #111827;
  --text-light: #6b7280;
}

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

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav .cta a {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #334155 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #1e40af;
}

.btn-secondary {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: #0891b2;
}

/* Articles Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.article-card, .featured-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.article-card:hover, .featured-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.article-card h3, .featured-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.article-card a, .featured-card a {
  color: var(--text);
  text-decoration: none;
}

.article-card a:hover, .featured-card a:hover {
  color: var(--primary);
}

.category {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
}

/* Sections */
.featured-articles, .categories-overview, .why-local-seo, .tools-recommendation, .signup {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

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

.category-card {
  background: var(--light);
  padding: 2rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  border-left: 4px solid var(--primary);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.benefit {
  padding: 1.5rem;
  background: var(--light);
  border-radius: 8px;
}

.benefit h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.tool-card {
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.tool-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.signup {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: #fff;
  text-align: center;
}

.signup h2 { color: #fff; }

.email-form {
  max-width: 400px;
  margin: 2rem auto;
  display: flex;
  gap: 0.5rem;
}

.email-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.email-form button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* Article Post */
.article-post {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.article-header {
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 2rem;
}

.article-post h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 2rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.article-content {
  line-height: 1.8;
  margin-bottom: 3rem;
}

.article-content h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem 0;
  text-align: left;
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem 0;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-sidebar {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.cta-box, .tool-recommendation {
  background: var(--light);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
}

.cta-box h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--secondary);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .main-nav ul { gap: 1rem; font-size: 0.9rem; }
  .article-grid { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
}
