/* =========================================================================
   HOME.CSS — Home page sections only
   (Hero + CTA band use shared component.css styles.)
   ========================================================================= */

/* ---- 02 Credential Trust Bar ------------------------------------------ */
.trust-bar {
  background: var(--surface-light);
  border-bottom: 1px solid var(--border);
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 40px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.trust-item i {
  color: var(--gold);
  font-size: 1rem;
}

.trust-placeholder {
  font-weight: 400;
  color: var(--text-muted);
}

/* ---- 01b Elevate (image + intro split) -------------------------------- */
.home-elevate {
  background: var(--surface-light);
  padding: var(--section-pad) 0;
}

.elevate-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.elevate-media img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.elevate-content .section-title {
  margin-bottom: 18px;
}

.elevate-content p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 28px;
}

.elevate-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- 03 Services Overview --------------------------------------------- */
.home-services {
  background: var(--bg);
  padding: var(--section-pad) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

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

.service-card.is-featured {
  border-top: 3px solid var(--gold);
}

.svc-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 3px;
}

.svc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--icon-bg);
  color: var(--icon);
  font-size: 1.375rem;
}

.svc-title {
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- 04 Why So Cal Is Different --------------------------------------- */
.differentiators {
  background: var(--surface-light);
  padding: var(--section-pad) 0;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.diff-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 32px;
  text-align: center;
}

.diff-card.is-featured {
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.diff-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.5rem;
}

.diff-title {
  color: var(--navy);
  margin-bottom: 12px;
}

.diff-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- 05 Service Area -------------------------------------------------- */
.service-area {
  background: var(--bg);
  padding: var(--section-pad) 0;
}

.service-area-intro {
  max-width: 760px;
  margin: -20px auto 40px;
  text-align: center;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--text-body);
}

.service-area-map {
  max-width: var(--container);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}

.service-area-map iframe {
  display: block;
  width: 100%;
}

.county-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto 40px;
}

.county-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  transition:
    transform 0.15s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.county-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  color: var(--navy);
}

.county-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--steel);
  font-size: 1rem;
}

/* ---- 06 Testimonials -------------------------------------------------- */
.home-testimonials {
  background: var(--surface-light);
  padding: var(--section-pad) 0;
}

.testimonial-grid {
  column-count: 3;
  column-gap: 24px;
}

.testimonial-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.testimonial-card .stars {
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.testimonial-card .quote {
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.testimonial-card .author {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
  color: var(--navy);
}

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

@media (max-width: 900px) {
  .testimonial-grid {
    column-count: 2;
  }

  .elevate-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .elevate-media {
    order: -1;
  }

  .elevate-media img {
    height: 300px;
  }
}

@media (max-width: 620px) {
  .testimonial-grid {
    column-count: 1;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 820px) {
  .diff-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }

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

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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