/*
Theme Name: ConvertPeak
Theme URI: https://example.com/convertpeak
Author: Grok
Description: Advanced, SEO-friendly, high-conversion WordPress theme. Clean, modern, and built for results.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: convertpeak
*/

/* ===== CSS Variables ===== */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #10b981;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
  --container: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--primary-hover); }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; font-weight: 700; margin-bottom: 0.75em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1.25em; color: var(--gray); }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}
.site-logo span { color: var(--primary); }
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.main-nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--primary); }
.header-cta {
  background: var(--primary);
  color: white !important;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.header-cta:hover { background: var(--primary-hover); }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: white !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.5);
}
.btn-secondary {
  background: white;
  color: var(--dark) !important;
  border: 2px solid #e2e8f0;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary) !important; }
.btn-large { padding: 1.15rem 2.4rem; font-size: 1.1rem; }

/* ===== Hero ===== */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero .lead {
  font-size: 1.25rem;
  color: var(--gray);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--gray);
  font-size: 0.95rem;
}
.hero-proof strong { color: var(--dark); }

/* ===== Trust Bar ===== */
.trust-bar {
  padding: 2.5rem 0;
  background: var(--light);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}
.trust-bar p { margin-bottom: 1.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.6;
  filter: grayscale(100%);
}
.logos span { font-weight: 700; font-size: 1.3rem; color: var(--dark); }

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.feature-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 2rem;
  transition: 0.25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: #dbeafe;
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 { margin-bottom: 0.75rem; }

/* ===== Social Proof / Testimonials ===== */
.testimonials {
  background: var(--dark);
  color: white;
}
.testimonials h2 { color: white; text-align: center; }
.testimonials .lead { color: #94a3b8; text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: #1e293b;
  padding: 2rem;
  border-radius: var(--radius);
}
.testimonial-card p { color: #cbd5e1; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}
.author-info strong { display: block; color: white; }
.author-info span { font-size: 0.85rem; color: #94a3b8; }

/* ===== CTA Section ===== */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 5rem 0;
}
.final-cta h2 { color: white; margin-bottom: 1rem; }
.final-cta p { color: #bfdbfe; max-width: 550px; margin: 0 auto 2rem; }
.final-cta .btn-primary {
  background: white;
  color: var(--primary) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.final-cta .btn-primary:hover { background: #f1f5f9; }

/* ===== Content / Blog ===== */
.content-area { padding: 4rem 0; }
.post-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: 0.2s;
}
.post-card:hover { box-shadow: var(--shadow); }
.post-card img { width: 100%; height: 220px; object-fit: cover; }
.post-card-body { padding: 1.75rem; }
.post-meta { font-size: 0.85rem; color: var(--gray); margin-bottom: 0.75rem; }
.entry-content { max-width: 720px; margin: 0 auto; }
.entry-content h2, .entry-content h3 { margin-top: 2em; }
.entry-content p { margin-bottom: 1.5em; }
.entry-content img { border-radius: 8px; margin: 2rem 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h3 { color: white; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.95rem; }
.footer-links h4 { color: white; margin-bottom: 1.25rem; font-size: 1rem; }
.footer-links ul { list-style: none; }
.footer-links a { color: #94a3b8; display: block; margin-bottom: 0.6rem; }
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }
}