/* ─────────────────────────────────────────────────
   Global styles — minimal, mobile-first, no JS framework.
   Clean and professional; all colours derived from a single
   --accent variable so per-site theming is one change.
───────────────────────────────────────────────── */

/* ── reset + base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:       #2563eb;   /* blue — override per brand */
  --accent-dark:  #1d4ed8;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --bg:           #ffffff;
  --bg-alt:       #f8fafc;
  --border:       #e2e8f0;
  --radius:       0.5rem;
  --max-w:        1100px;
  --font-sans:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   Georgia, 'Times New Roman', serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── layout helpers ── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── header / nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }

/* ── hero ── */
.hero {
  background: var(--bg-alt);
  padding: 5rem 1.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 1rem;
}
.hero .tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ── CTA button ── */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.cta-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ── sections ── */
section {
  padding: 4rem 1.5rem;
  max-width: var(--max-w);
  margin-inline: auto;
}
section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

/* ── features grid ── */
.features { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* ── social proof ── */
.social-proof {
  background: var(--bg-alt);
  text-align: center;
}
.testimonial-placeholder {
  max-width: 640px;
  margin-inline: auto;
  padding: 2rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
.placeholder-note { color: var(--text-muted); font-style: italic; }

/* ── alternatives ── */
.alternatives { background: var(--bg); }
.alts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.alt-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.alt-card strong { display: block; margin-bottom: 0.4rem; font-size: 0.9375rem; }
.alt-card p { color: var(--text-muted); font-size: 0.875rem; }

/* ── final cta ── */
.final-cta { text-align: center; padding-top: 3rem; padding-bottom: 5rem; }

/* ── page hero (inner pages) ── */
.page-hero {
  background: var(--bg-alt);
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.page-hero p { color: var(--text-muted); max-width: 580px; margin-inline: auto; }

/* ── about / page body ── */
.page-body {
  max-width: 700px;
  margin-inline: auto;
}
.page-body p { margin-bottom: 1.25rem; color: var(--text-muted); }

/* ── services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 2rem 1.5rem;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.service-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.service-card .price {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.services-cta { text-align: center; padding-bottom: 4rem; }

/* ── contact ── */
.contact-form-wrap {
  max-width: 580px;
  margin-inline: auto;
  padding: 2rem 1.5rem 4rem;
}
.lead-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label { font-size: 0.9375rem; font-weight: 600; }
.form-group input,
.form-group textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-note { margin-top: 1rem; color: var(--text-muted); font-size: 0.875rem; }

/* ── blog list ── */
.blog-list {
  max-width: 720px;
  margin-inline: auto;
  padding: 2rem 1.5rem 4rem;
}
.blog-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}
.blog-card h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.blog-card p { color: var(--text-muted); margin-bottom: 0.75rem; }

/* ── blog post ── */
.blog-post {
  max-width: 720px;
  margin-inline: auto;
  padding: 2rem 1.5rem 4rem;
}
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; margin-bottom: 0.5rem; }
.post-header time { color: var(--text-muted); font-size: 0.9375rem; }
.post-body { font-size: 1.0625rem; line-height: 1.75; }
.post-body h2 { font-size: 1.375rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.post-body p { margin-bottom: 1.25rem; }
.post-body ul, .post-body ol { margin-left: 1.5rem; margin-bottom: 1.25rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body strong { font-weight: 700; }
.post-body a { color: var(--accent); }
.post-cta { margin-top: 3rem; text-align: center; }

/* ── footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }

/* ── responsive ── */
@media (max-width: 640px) {
  .nav-links { gap: 1rem; }
  .nav-links li:not(:last-child) { display: none; } /* mobile: show only CTA */
  section { padding-inline: 1rem; }
}
