/* A.I. Consulting LLC - Core Web Vitals Optimized CSS */

/* CSS Variables */
:root {
  --primary-color: #2563EB;
  --primary-dark: #1D4ED8;
  --secondary-color: #4B5563;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --background: #FFFFFF;
  --background-light: #F9FAFB;
  --border-color: #E5E7EB;
  --success-color: #10B981;
  --warning-color: #F59E0B;
  --error-color: #EF4444;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container-max-width: 1200px;
  --border-radius: 8px;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: var(--background);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  min-height: 70px;
}

.logo {
  height: 40px;
  width: auto;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.phone-number {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.1rem;
}

.phone-number:hover {
  color: var(--primary-dark);
}

/* Navigation */
.main-nav {
  background: var(--background-light);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  background: var(--primary-color);
  color: white;
}

/* Sub Navigation */
.sub-nav {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.sub-nav-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.sub-nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.sub-nav-link:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content .subheadline {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Content Sections */
.content-section {
  padding: 3rem 0;
}

.content-section:nth-child(even) {
  background: var(--background-light);
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards and Boxes */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.info-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Benefits List */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.benefit-icon {
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.benefit-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  margin: 3rem 0;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  background: var(--background-light);
  padding: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.faq-answer {
  padding: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Lead Form */
.lead-form-section {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.lead-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.lead-form-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.lead-form-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.jotform-container {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

/* What to Look For Section - WITH SVG ICONS */
.what-to-look-for {
  background: var(--background-light);
  padding: 3rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  fill: var(--primary-color);
}

.feature-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Section - IMPROVED PADDING */
.contact-section {
  background: var(--primary-color);
  color: white;
  padding: 4rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin: 3rem 0;
}

.contact-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-section p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem; /* INCREASED PADDING */
  opacity: 0.9;
  line-height: 1.6;
}

.contact-cta {
  background: white;
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.contact-cta:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Subfooter Navigation - NEW SECTION */
.subfooter {
  background: var(--background-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 4rem;
}

.subfooter-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.subfooter h3 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.subfooter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.subfooter-link {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.subfooter-link:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.subfooter-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.subfooter-link a:hover {
  color: var(--primary-dark);
}

/* CTA Section */
.cta-section {
  background: var(--background-light);
  padding: 3rem 0;
  text-align: center;
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--text-secondary);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-light);
}

/* AdSense Placeholder */
.adsense-banner {
  width: 100%;
  height: 90px;
  background: var(--background-light);
  border: 2px dashed var(--border-color);
  display: none; /* Hidden by default, controlled by JS */
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 2rem 0;
}

.adsense-banner.show {
  display: flex;
}

/* Breadcrumbs - CORRECTED FORMAT */
.breadcrumb {
  background: var(--background-light);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.breadcrumb nav {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .subheadline {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sub-nav-container {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .benefits-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .info-card, .benefit-item {
    padding: 1.5rem;
  }
}

/* Performance Optimizations */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Focus styles for accessibility */
.nav-link:focus,
.sub-nav-link:focus,
.cta-button:focus,
.footer-links a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header, .footer, .nav, .sub-nav, .lead-form-section {
    display: none;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================= */
/* LOCATIONS PAGE SPECIFIC STYLING */
/* ========================================= */

/* Locations Grid Layout */
.locations-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

/* State Section Cards */
.state-section {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.state-section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.state-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
}

/* City Links Grid */
.city-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.city-links a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--background-light);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.city-links a:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.city-links a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Location Note Box */
.location-note {
  background: var(--background-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  margin-top: 2rem;
}

.location-note p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Mobile Responsive for Locations Page */
@media (max-width: 768px) {
  .city-links {
    grid-template-columns: 1fr;
  }

  .state-section {
    padding: 1.5rem;
  }

  .state-section h3 {
    font-size: 1.3rem;
  }
}