/* Heartland Foundation Repair - Kansas City */
:root {
  --primary: #2E5D34;
  --primary-dark: #1a3d1f;
  --secondary: #8B4513;
  --accent: #D2B48C;
  --dark: #1a1a1a;
  --light: #f5f5f0;
  --gray: #666;
  --white: #fff;
  --success: #28a745;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --radius: 8px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

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

.logo span {
  color: var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

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

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

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

.hero-stat .number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat .label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-sm, .btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: #c4a87a;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 15px;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-sm {
  background: var(--primary);
  color: var(--white);
  padding: 8px 18px;
  font-size: 0.85rem;
  margin-top: 10px;
  display: inline-block;
}

.btn-sm:hover {
  background: var(--primary-dark);
}

.btn {
  background: var(--accent);
  color: var(--dark);
  padding: 10px 24px;
}

/* Sections */
section {
  padding: 70px 0;
}

section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--secondary);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--gray);
  margin-bottom: 15px;
}

.service-card .price {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Why Us */
.why-us {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.why-item {
  text-align: center;
  padding: 30px 20px;
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.why-item h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.why-item p {
  color: var(--gray);
}

/* Areas Grid */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.area-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
  transition: transform 0.3s;
}

.area-card:hover {
  transform: translateY(-3px);
}

.area-card h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.area-card p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Testimonials */
.testimonials {
  background: var(--primary-dark);
  color: var(--white);
}

.testimonials h2 {
  color: var(--white);
}

.testimonials .section-subtitle {
  color: var(--accent);
}

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

.testimonial-card {
  background: rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.testimonial-card .stars {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.7;
}

.testimonial-card .author {
  color: var(--accent);
  font-weight: 600;
}

/* FAQ */
#faq {
  background: var(--light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-dark);
  position: relative;
  user-select: none;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  font-size: 1.5rem;
  color: var(--secondary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 25px 20px;
  color: var(--gray);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #6b3410 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.95;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

footer h4 {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

footer p, footer li {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.8;
}

footer ul {
  list-style: none;
}

footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

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

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #999;
  font-size: 0.9rem;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  padding: 12px 0;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.sticky-cta .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sticky-cta .phone {
  font-weight: 600;
  font-size: 1rem;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 15px;
  }

  nav ul.open {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat .number {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 10px;
  }

  .sticky-cta .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}