/* ========================================
   Recessed Lighting Installation
   Hand-crafted Styles - Warm & Inviting
   ======================================== */

:root {
  /* Warm, inviting palette - not corporate blue */
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  --warm-white: #fafaf9;
  --cream: #f5f5f4;
  --stone: #78716c;
  
  /* Warm accent - orange/amber instead of cold blue */
  --accent: var(--amber-500);
  --accent-dark: var(--amber-600);
  --accent-light: var(--amber-400);
  --accent-soft: var(--amber-100);
  
  --text: var(--slate-800);
  --text-muted: var(--slate-500);
  --text-light: var(--slate-400);
  
  --bg: white;
  --bg-warm: var(--warm-white);
  --bg-cream: var(--cream);
  --bg-dark: var(--slate-900);
  
  --border: var(--slate-200);
  --border-light: var(--slate-100);
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-amber: 0 10px 40px -10px rgba(245, 158, 11, 0.3);
  
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Header - Clean & Warm
   ======================================== */

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

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

.logo img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.3);
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.4);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* ========================================
   Hero - Warm & Inviting (Not Corporate)
   ======================================== */

.hero {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  color: white;
  padding: 100px 0 140px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--amber-400);
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--slate-300);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-badges span {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-300);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   Buttons - Rounded & Friendly
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-white {
  background: white;
  color: var(--accent-dark);
}

.btn-white:hover {
  background: var(--amber-50);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

/* ========================================
   Lead Form - Card Style
   ======================================== */

.lead-form-section {
  background: var(--bg-warm);
  padding: 60px 0;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.lead-form-container {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  padding: 48px;
  align-items: start;
}

.lead-form-content h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
}

.lead-form-content > p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.lead-benefits {
  list-style: none;
}

.lead-benefits li {
  padding: 10px 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.lead-benefits li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  font-size: 18px;
}

.lead-form-wrapper {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: white;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}

.form-disclaimer a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.lead-form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.lead-form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text);
}

.lead-form-success p {
  color: var(--text-muted);
}

/* ========================================
   Sections
   ======================================== */

.section {
  padding: 80px 0;
}

.section-warm {
  background: var(--bg-warm);
}

.section-cream {
  background: var(--bg-cream);
}

.section-white {
  background: white;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   Cards - Clean & Modern
   ======================================== */

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

.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.category-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-amber);
  transform: translateY(-4px);
}

.category-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.category-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.category-card p {
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 15px;
}

.card-arrow {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-arrow::after {
  content: '→';
  transition: transform 0.2s;
}

.category-card:hover .card-arrow::after {
  transform: translateX(4px);
}

/* ========================================
   Guide Cards
   ======================================== */

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.guide-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.guide-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  padding-left: 28px;
}

.guide-info h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.guide-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.difficulty {
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.difficulty-beginner {
  background: #dcfce7;
  color: #166534;
}

.difficulty-intermediate {
  background: #fef3c7;
  color: #92400e;
}

.difficulty-advanced {
  background: #fee2e2;
  color: #991b1b;
}

.time {
  color: var(--text-muted);
}

/* ========================================
   States & Cities
   ======================================== */

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.state-link {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s;
  display: block;
}

.state-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--bg-warm);
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.city-link {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.2s;
}

.city-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ========================================
   CTA Boxes
   ======================================== */

.cta-box {
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-700) 100%);
  color: white;
  padding: 48px;
  border-radius: var(--radius-xl);
  margin: 48px 0;
  text-align: center;
}

.cta-box h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: white;
  font-weight: 700;
}

.cta-box p {
  color: var(--slate-300);
  margin-bottom: 28px;
  font-size: 1.1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box-large {
  text-align: center;
  padding: 64px 32px;
}

.cta-box-large h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 800;
  color: white;
}

.cta-box-large p {
  font-size: 1.25rem;
  color: var(--slate-300);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: var(--slate-900);
  color: white;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 15px;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: white;
}

.footer-links a {
  display: block;
  color: var(--slate-400);
  text-decoration: none;
  padding: 6px 0;
  font-size: 15px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 32px;
  text-align: center;
  color: var(--slate-500);
  font-size: 14px;
}

/* ========================================
   Article Content
   ======================================== */

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--text);
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 36px 0 14px;
  color: var(--text);
}

.article-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 16px;
}

.article-content ul,
.article-content ol {
  margin: 20px 0 24px 24px;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.article-content th,
.article-content td {
  padding: 14px 16px;
  text-align: left;
  border: 1px solid var(--border);
}

.article-content th {
  background: var(--bg-cream);
  font-weight: 600;
  color: var(--text);
}

.article-content tr:nth-child(even) {
  background: var(--bg-warm);
}

/* ========================================
   Page Header
   ======================================== */

.page-header {
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-700) 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--slate-300);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Sidebar Layout
   ======================================== */

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-widget h4 {
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--text);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .lead-form-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .content-with-sidebar {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
  
  .hero {
    padding: 64px 0 100px;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .states-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .lead-form-container {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .cta-box {
    padding: 32px 24px;
  }
}

/* ========================================
   Utilities
   ======================================== */

.text-center { text-align: center; }
