/* Shared CSS for All Sites - Mobile First, Fast Loading */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --light: #f8fafc;
  --dark: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --max-width: 1200px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --radius: 8px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo { font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.logo span { color: var(--primary); }

nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav a { color: var(--text); font-weight: 500; }
nav a:hover { color: var(--primary); }

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

.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-block { width: 100%; text-align: center; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  font-size: 1rem;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; padding: 2rem 0; }
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card-content { padding: 1.5rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-light); }

/* Sections */
section { padding: 3rem 0; }
section:nth-child(even) { background: white; }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.section-title p { color: var(--text-light); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature { text-align: center; padding: 1rem; }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature h3 { margin-bottom: 0.5rem; }

/* CTA Section */
.cta { background: var(--primary); color: white; text-align: center; padding: 4rem 0; }
.cta h2 { margin-bottom: 1rem; }
.cta p { margin-bottom: 2rem; opacity: 0.9; }

/* Footer */
footer { background: var(--dark); color: white; padding: 2rem 0; text-align: center; }
footer p { opacity: 0.7; }
footer a { color: var(--accent); }

/* Mobile */
@media (max-width: 768px) {
  header .container { flex-direction: column; gap: 1rem; }
  nav ul { flex-wrap: wrap; justify-content: center; }
  .hero { padding: 2rem 0; }
  section { padding: 2rem 0; }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.p-1 { padding: 1rem; }
.bg-light { background: var(--light); }
.bg-white { background: white; }

/* Forms - Lead Capture */
.lead-form { max-width: 500px; margin: 0 auto; background: white; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.lead-form h2 { margin-bottom: 1.5rem; text-align: center; }

/* Trust Badges */
.trust-badges { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; padding: 1rem; }
.trust-badge { display: flex; align-items: center; gap: 0.5rem; color: var(--text-light); font-size: 0.9rem; }

/* Pricing */
.pricing-card { text-align: center; padding: 2rem; }
.price { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.price span { font-size: 1rem; color: var(--text-light); font-weight: 400; }
.features-list { list-style: none; margin: 1.5rem 0; text-align: left; }
.features-list li { padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; }
.features-list li::before { content: "✓"; color: var(--success); margin-right: 0.5rem; }

/* Loading */
.loading { display: none; }
.loading.active { display: inline-block; width: 20px; height: 20px; border: 2px solid white; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hidden */
.hidden { display: none !important; }

/* Success Message */
.success-message { background: var(--success); color: white; padding: 1rem; border-radius: var(--radius); text-align: center; margin-top: 1rem; display: none; }
.success-message.show { display: block; }