/* =============================================================
   CURA CAPITAL — Home Page Styles (home.css)
   Sections: hero, trust-bar, services-teaser, about-teaser,
             timeline, testimonials, cta-band
   ============================================================= */

/* ─── HERO ────────────────────────────────────────────────── */

.home-hero {
  min-height: clamp(420px, calc(82svh - var(--header-height)), 700px);
  min-height: clamp(420px, calc(82vh - var(--header-height)), 700px); /* fallback */
  display: grid;
  grid-template-columns: 6fr 4fr;
  align-items: center;
  gap: var(--space-xl);
  padding-block: var(--space-lg);
}

.home-hero__content { }

.home-hero__eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.home-hero__headline {
  margin-bottom: var(--space-md);
}

.home-hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: var(--space-lg);
}

.home-hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.home-hero__graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--border-color) 100%);
  border-radius: var(--border-radius-card);
  min-height: 360px;
  border: 1px solid var(--border-color);
  padding: var(--space-sm);
}

.home-hero__image {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--border-radius-card) - 0.4rem);
}

@media (max-width: 1023px) {
  .home-hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-block: var(--space-lg);
  }
  /* text-align:center on the container centers headings/eyebrow (correct on mobile),
     but paragraph body copy must stay justified — explicit rule overrides inheritance */
  .home-hero__sub {
    margin-inline: auto;
    text-align: justify;
  }
  .home-hero__actions { justify-content: center; }
  .home-hero__graphic { min-height: 220px; order: -1; }
}


/* ─── TRUST / STATS BAR ───────────────────────────────────── */

.trust-bar {
  background: linear-gradient(180deg, rgba(15, 57, 140, 0.06), transparent);
  padding-block: var(--space-lg);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.trust-stat {
  text-align: left;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.trust-stat__number {
  display: block;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.trust-stat__label {
  display: block;
  font-size: 1rem;
  color: var(--text-heading);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.trust-stat__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: 28ch;
  line-height: 1.65;
}

@media (max-width: 1023px) {
  .trust-bar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .trust-bar__grid {
    grid-template-columns: 1fr;
  }

  .trust-stat {
    text-align: center; /* centers the stat number and label on narrow screens */
  }

  /* Override the inherited center from .trust-stat so description prose stays justified */
  .trust-stat__desc {
    max-width: none;
    text-align: justify;
  }
}


/* ─── SERVICES TEASER ─────────────────────────────────────── */

.home-services {
  --services-gap: var(--space-lg);
  --services-per-view: 3;
  --services-page: 0;
}

.home-services__viewport {
  overflow: hidden;
}

.home-services__grid {
  display: flex;
  gap: var(--services-gap);
  transform: translateX(var(--services-offset, 0px));
  transition: transform 0.7s ease;
  will-change: transform;
}

.home-services__card {
  flex: 0 0 calc((100% - (var(--services-gap) * (var(--services-per-view) - 1))) / var(--services-per-view));
  display: flex;
  flex-direction: column;
}

.home-services__card .card__body {
  flex: 1;
}

.home-services__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.home-services__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.home-services__pause {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  border-radius: 50%;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.home-services__pause:hover,
.home-services__pause:focus-visible {
  background-color: var(--color-primary);
  color: #fff;
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.home-services__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--color-primary) 20%, transparent);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.home-services__dot.is-active {
  background-color: var(--color-primary);
  transform: scale(1.2);
}

@media (max-width: 1023px) {
  .home-services {
    --services-per-view: 2;
  }
}

@media (max-width: 767px) {
  .home-services {
    --services-per-view: 1;
  }
}


/* ─── ABOUT TEASER ────────────────────────────────────────── */

.home-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.home-about__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.home-about__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .home-about { grid-template-columns: 1fr; }
}


/* ─── 5-STEP TIMELINE ─────────────────────────────────────── */

.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
}

.timeline-step {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
}

.timeline-step:last-child { margin-bottom: 0; }

.timeline-step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  border: 3px solid var(--bg-base);
  box-shadow: var(--shadow-card);
}

.timeline-step__content {
  flex: 1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-card);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color var(--transition-fast), box-shadow var(--transition-base);
}

.timeline-step:hover .timeline-step__content {
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.timeline-step__title {
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

.timeline-step__desc {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 0;
}

[data-theme="dark"] .timeline-step__content {
  background-color: oklch(0.2480 0.0050 248);
  border-color: oklch(0.3400 0.0080 248);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.30);
}

[data-theme="dark"] .timeline-step:hover .timeline-step__content {
  border-color: var(--color-accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.40);
}

[data-theme="dark"] .timeline-step__desc {
  color: oklch(0.8800 0.0040 240);
}

@media (max-width: 599px) {
  .timeline::before { left: 20px; }
  .timeline-step__number { width: 40px; height: 40px; font-size: 1rem; }
  .timeline-step__content { padding: var(--space-sm) var(--space-md); }
}


/* ─── TESTIMONIALS ────────────────────────────────────────── */

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  padding: var(--space-lg);
}

.testimonial-card__stars {
  color: #F59E0B;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.testimonial-card__quote {
  font-style: italic;
  color: var(--text-body);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-heading);
}

@media (max-width: 1023px) { .testimonials__grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) and (max-width: 1023px) { .testimonials__grid { grid-template-columns: 1fr 1fr; } }
