/* Pavalet homepage sections. Builds on application.css tokens for a refined, editorial feel. */
.home-categories,
.home-categories *,
.home-ethos,
.home-ethos * {
  box-sizing: border-box;
}

.home-desktop-break {
  display: none;
}

/* Category chip strip */
.home-chips {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.home-chips__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0 auto;
  max-width: 1100px;
  padding: clamp(1.25rem, 3vw, 1.75rem) 1.5rem;
}

/* Outline category chips. The emphasized "All services" action uses the
   canonical button: .primary.pill.small */
.home-chip {
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-fg);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  min-height: 2.5rem;
  padding: 0.6rem 1.05rem;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

.home-chip:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.4);
  color: var(--color-gold-dark);
  transform: translateY(-1px);
}

html[data-theme="dark"] .home-chip:hover {
  color: var(--color-gold-light);
}

@media (prefers-reduced-motion: reduce) {
  .home-chip {
    transition: border-color 0.2s, background 0.2s, color 0.2s;
  }

  .home-chip:hover {
    transform: none;
  }
}

/* How it works steps */
.home-steps-section {
  padding-bottom: clamp(4rem, 9vw, 6.5rem);
  padding-top: clamp(4rem, 9vw, 6.5rem);
}

.home-steps {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-step {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.home-step__num {
  color: var(--color-gold);
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.home-step__title {
  color: var(--color-fg);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.home-step__desc {
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

/* Editorial ethos split */
.home-ethos {
  background: var(--color-surface);
  padding: clamp(4rem, 9vw, 6.5rem) 1.5rem;
}

.home-ethos__inner {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 1100px;
}

.home-ethos__body {
  color: var(--color-muted);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.8;
  margin: 1.5rem 0 0;
  max-width: 38rem;
  text-wrap: pretty;
}

.home-ethos__media {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.home-ethos__tile {
  border-radius: 1rem;
  box-shadow: 0 14px 40px rgba(42, 26, 6, 0.14);
  overflow: hidden;
}

html[data-theme="dark"] .home-ethos__tile {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.home-ethos__tile img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-ethos__tile--a {
  aspect-ratio: 3 / 4;
  margin-top: 1.75rem;
}

.home-ethos__tile--b {
  aspect-ratio: 3 / 4;
}

@media (min-width: 640px) {
  .home-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .home-desktop-break {
    display: inline;
  }

  .home-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-ethos__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-cat,
  .home-cat__more {
    transition: none;
  }
}
