/* ========================================
   HOMEPAGE STYLES
   ======================================== */

/* ----------------------------------------
   HERO
   ---------------------------------------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1562259949-e8e7689d7828?w=1600&q=85'); /* paint roller hero - kept */
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.88) 0%,
    rgba(26, 26, 26, 0.72) 50%,
    rgba(26, 26, 26, 0.60) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: var(--space-8) var(--space-6);
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--lime);
  margin-bottom: var(--space-5);
  display: block;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: var(--space-5);
}

.hero-headline em {
  color: var(--lime);
  font-style: normal;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255,255,255,0.80);
  margin-bottom: var(--space-8);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-trust .divider {
  color: rgba(255,255,255,0.3);
}

/* ----------------------------------------
   TRUST BAR
   ---------------------------------------- */
.trust-bar {
  background: var(--charcoal-mid);
  border-bottom: 1px solid rgba(109,190,46,0.2);
  padding-block: var(--space-8);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.trust-item:last-child { border-right: none; }

.trust-icon {
  flex-shrink: 0;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-stat {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trust-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ----------------------------------------
   SERVICES SECTION
   ---------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(109,190,46,0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  margin-bottom: var(--space-4);
  width: 48px;
  height: 48px;
  background: rgba(109,190,46,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.service-link {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--lime-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color var(--transition);
}

.service-link:hover { color: var(--lime); }

.services-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------
   WHY CHOOSE US
   ---------------------------------------- */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.why-intro {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.why-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.why-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--lime);
  color: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  margin-top: 2px;
}

.why-item strong {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.why-item p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.why-certs {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(109,190,46,0.25);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  flex: 1;
  min-width: 120px;
}

.cert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cert-badge strong {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--white);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-badge span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
}

/* Why image */
.why-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.why-image-badge {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: var(--lime);
  color: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  text-align: center;
}

.badge-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  display: block;
  line-height: 1;
}

.why-image-badge span {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----------------------------------------
   FEATURED PROJECT
   ---------------------------------------- */
.featured-project {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.featured-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://classichomecontractors.com/wp-content/uploads/2024/08/commercial-building-exterior-painting-service.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26,26,26,0.92) 0%,
    rgba(26,26,26,0.75) 60%,
    rgba(26,26,26,0.50) 100%
  );
  z-index: 1;
}

.featured-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-block: var(--space-16);
}

.featured-desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.80);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 56ch;
}

/* ----------------------------------------
   SERVICE AREA
   ---------------------------------------- */
.area-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.area-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.area-list li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.area-list li:last-child { border-bottom: none; }

.map-placeholder {
  background: var(--charcoal);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-lg);
}

/* ----------------------------------------
   CTA SECTION
   ---------------------------------------- */
.cta-section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: var(--space-4);
}

.cta-sub {
  font-size: var(--text-base);
  color: rgba(26,26,26,0.7);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.cta-phones {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cta-phone-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  transition: opacity var(--transition);
}

.cta-phone-link:hover { opacity: 0.75; }

.cta-phone-divider {
  font-size: var(--text-xl);
  color: rgba(26,26,26,0.4);
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cta-note {
  font-size: var(--text-xs);
  color: rgba(26,26,26,0.6);
  text-align: center;
  max-width: none;
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-item { border-right: none; }
  .trust-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }

  .why-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .why-image { max-height: 360px; }
  .why-image img { height: 360px; }

  .area-layout {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-phones { justify-content: center; }
  .cta-sub { margin: 0 auto var(--space-5); }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

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

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

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-trust {
    font-size: 0.65rem;
  }
}
