/* ============================================
   Homepage Styles
   Sections: hero, services grid, process timeline,
   value props, insurance callout, trust strip,
   service areas, final CTA
   ============================================ */

/* ============================================
   Hero Enhancements (homepage-specific)
   ============================================ */

.hero--home .hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* Hero staggered entrance */
.hero--home .hero__badge { animation: hero-stagger 0.5s ease-out 0.2s both; }
.hero--home .hero__title { animation: hero-stagger 0.5s ease-out 0.3s both; }
.hero--home .hero__subtitle { animation: hero-stagger 0.5s ease-out 0.4s both; }
.hero--home .hero__actions { animation: hero-stagger 0.5s ease-out 0.5s both; }
.hero--home .hero__trust { animation: hero-stagger 0.5s ease-out 0.6s both; }

@keyframes hero-stagger {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero secondary button on dark bg */
.hero .btn--outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero--home .hero__badge,
  .hero--home .hero__title,
  .hero--home .hero__subtitle,
  .hero--home .hero__actions,
  .hero--home .hero__trust {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero--home .hero__badge-dot {
    animation: none;
  }
}

/* ============================================
   Services Grid (5 cards)
   ============================================ */

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

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

/* ============================================
   Process Timeline (4 phases)
   Alternating left/right on desktop,
   single column with left line on mobile
   ============================================ */

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Center vertical line */
.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-border);
  transform: translateX(-50%);
}

/* Single phase */
.process-phase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-6);
  align-items: start;
  margin-bottom: var(--space-10);
}

.process-phase:last-child {
  margin-bottom: 0;
}

/* Phase circle (center column) */
.process-phase__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  z-index: var(--z-base);
  flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--color-bg);
}

/* Dark mode: match the ring to the dark bg */
[data-theme='dark'] .process-phase__circle {
  box-shadow: 0 0 0 6px var(--color-bg);
}

/* Phase content card */
.process-phase__content {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
}

.process-phase__title {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.process-phase__text {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* Alternating layout: odd phases have content on the left */
.process-phase:nth-child(odd) .process-phase__content {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
}

.process-phase:nth-child(odd) .process-phase__title,
.process-phase:nth-child(odd) .process-phase__text {
  text-align: left;
}

.process-phase:nth-child(odd) .process-phase__circle {
  grid-column: 2;
  grid-row: 1;
}

/* Even phases have content on the right */
.process-phase:nth-child(even) .process-phase__content {
  grid-column: 3;
  grid-row: 1;
}

.process-phase:nth-child(even) .process-phase__circle {
  grid-column: 2;
  grid-row: 1;
}

/* Empty spacer for the opposite side */
.process-phase__spacer {
  display: block;
}

.process-phase:nth-child(odd) .process-phase__spacer {
  grid-column: 3;
  grid-row: 1;
}

.process-phase:nth-child(even) .process-phase__spacer {
  grid-column: 1;
  grid-row: 1;
}

/* Tablet */
@media (max-width: 900px) {
  .process-timeline::before {
    left: 24px;
    transform: none;
  }

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

  .process-phase__spacer {
    display: none;
  }

  .process-phase:nth-child(odd) .process-phase__content,
  .process-phase:nth-child(even) .process-phase__content {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }

  .process-phase:nth-child(odd) .process-phase__circle,
  .process-phase:nth-child(even) .process-phase__circle {
    grid-column: 1;
    grid-row: 1;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .process-phase__circle {
    width: 40px;
    height: 40px;
    font-size: var(--fs-xs);
  }

  .process-timeline::before {
    left: 20px;
  }

  .process-phase__content {
    padding: var(--space-4) var(--space-5);
  }
}

/* ============================================
   Value Props (two-column: image + features)
   ============================================ */

.value-props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.value-props__image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.value-props__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.value-props__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (max-width: 1024px) {
  .value-props {
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .value-props {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .value-props__image {
    max-height: 280px;
  }

  .value-props__image img {
    max-height: 280px;
  }
}

/* ============================================
   Insurance Callout (standalone highlight)
   ============================================ */

.insurance-callout {
  background-color: var(--color-accent-bg);
  border-radius: var(--radius-md);
  padding: var(--space-10) var(--space-8);
  max-width: 800px;
  margin: 0 auto;
  border-left: 4px solid var(--color-accent);
}

.insurance-callout h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-4);
}

.insurance-callout p {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.insurance-callout__disclaimer {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  font-style: italic;
}

.insurance-callout__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  margin-top: var(--space-4);
  transition: gap var(--transition-base);
}

.insurance-callout__link:hover {
  gap: var(--space-2);
}

.insurance-callout__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
}

.insurance-callout__link:hover svg {
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .insurance-callout {
    padding: var(--space-6) var(--space-5);
  }
}

/* ============================================
   Service Areas (minimal launch state)
   ============================================ */

.service-areas__text {
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-6);
  text-align: center;
  line-height: 1.6;
}

/* Future: city card grid goes here */
.service-areas__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 1024px) {
  .service-areas__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .service-areas__grid {
    grid-template-columns: 1fr;
  }
}
