/*
Theme Name: Titan Lead Gen
Theme URI: https://empiretitan.ch
Author: Empire Titan
Author URI: https://empiretitan.ch
Description: Ultra-lightweight lead generation theme inspired by the Kyle Van Deusen "Website Landlord" model. Built for local service niche landing pages with Schema LocalBusiness, CallRail tracking, and conversion-focused design.
Version: 1.0.0
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: titan-lead-gen
Requires at least: 6.0
Tested up to: 6.9.4
Requires PHP: 8.0
*/

/* ========== CSS VARIABLES ========== */
:root {
  --color-primary:   #2563eb;  /* blue-600 */
  --color-primary-dark: #1d4ed8; /* blue-700 */
  --color-accent:    #16a34a;  /* green-600 */
  --color-accent-dark: #15803d;/* green-700 */
  --color-dark:      #111827;  /* gray-900 */
  --color-light:     #f9fafb;  /* gray-50 */
  --color-text:      #1f2937;  /* gray-800 */
  --color-muted:     #6b7280;  /* gray-500 */
  --font-sans:       "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius:          0.5rem;
  --max-width:       1200px;
}

/* ========== RESET / BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== UTILITIES ========== */
.container { width: 92%; max-width: var(--max-width); margin: 0 auto; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-accent {
  background: var(--color-accent);
  color: #fff;
}
.btn-accent:hover { background: var(--color-accent-dark); }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* ========== HEADER ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-logo { font-size: 1.25rem; font-weight: 800; color: var(--color-dark); }
.header-phone { font-size: 1.125rem; font-weight: 700; color: var(--color-accent); }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1f2937 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.125rem;
  color: #d1d5db;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero .phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.hero .phone-cta:hover { background: var(--color-accent-dark); text-decoration: none; }
.hero .cta-sub { font-size: 0.875rem; color: #9ca3af; }

/* ========== LEAD FORM ========== */
.lead-form {
  background: var(--color-light);
  padding: 3rem 0;
}
.lead-form-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.lead-form h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.lead-form .subhead {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group textarea { min-height: 100px; resize: vertical; }

/* ========== TRUST BAR ========== */
.trust-bar {
  background: #fff;
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--color-muted);
}
.trust-list li { display: flex; align-items: center; gap: 0.375rem; }

/* ========== SERVICES / CONTENT ========== */
.section { padding: 4rem 0; }
.section-alt { background: var(--color-light); }
.section h2 {
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 2rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9375rem; color: var(--color-muted); }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-dark);
  color: #9ca3af;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}
.site-footer a { color: #d1d5db; }

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero .phone-cta { font-size: 1.125rem; padding: 0.75rem 1.25rem; }
  .lead-form-box { padding: 1.5rem; }
}
