/* ═══════════════════════════════════════════════════════════════════════
   VividHome — How It Works Section
   3-step process + material quality cards
   ═══════════════════════════════════════════════════════════════════════ */

.vh-how {
  position: relative;
  padding: var(--vh-section-py) 0;
  background-color: var(--vh-cream);
  overflow: hidden;
}

/* Subtle grain texture overlay */
.vh-how::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
}


/* ── Section header ── */

.vh-how__header {
  text-align: center;
  margin-bottom: var(--vh-space-16);
  position: relative;
}

.vh-how__eyebrow {
  display: inline-block;
  font-family: var(--vh-font-body);
  font-size: var(--vh-text-xs);
  font-weight: var(--vh-weight-semibold);
  letter-spacing: var(--vh-tracking-widest);
  text-transform: uppercase;
  color: var(--vh-purple);
  margin-bottom: var(--vh-space-4);
}

.vh-how__title {
  font-family: var(--vh-font-heading);
  font-size: clamp(2rem, 4.5vw, var(--vh-text-5xl));
  font-weight: var(--vh-weight-light);
  line-height: var(--vh-leading-tight);
  letter-spacing: var(--vh-tracking-tighter);
  color: var(--vh-ink);
  margin-bottom: var(--vh-space-5);
}

.vh-how__title em {
  font-style: normal;
  background: var(--vh-gradient-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vh-how__subtitle {
  font-family: var(--vh-font-body);
  font-size: var(--vh-text-md);
  color: var(--vh-charcoal);
  max-width: 540px;
  margin: 0 auto;
  line-height: var(--vh-leading-relaxed);
}


/* ── Steps row ── */

.vh-how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--vh-space-8);
  position: relative;
  margin-bottom: var(--vh-section-py-sm);
}

/* Animated gradient connecting line */
.vh-how__line {
  position: absolute;
  top: 44px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 2px;
  background: var(--vh-sand);
  border-radius: var(--vh-radius-full);
  z-index: 0;
  overflow: hidden;
}

.vh-how__line-fill {
  height: 100%;
  width: 0;
  background: var(--vh-gradient-h);
  border-radius: inherit;
  transition: width 1.5s var(--vh-ease-out);
}

.vh-how.is-visible .vh-how__line-fill {
  width: 100%;
}


/* ── Individual step ── */

.vh-how__step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.vh-how__step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--vh-white);
  border: 2px solid var(--vh-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--vh-space-6);
  transition: all var(--vh-duration-medium) var(--vh-ease-out);
}

.vh-how__step-num span {
  font-family: var(--vh-font-heading);
  font-size: var(--vh-text-xl);
  font-weight: var(--vh-weight-semibold);
  color: var(--vh-stone);
  transition: color var(--vh-duration-medium) var(--vh-ease-out);
}

.vh-how.is-visible .vh-how__step-num {
  background: var(--vh-gradient-cta);
  border-color: transparent;
  box-shadow: var(--vh-shadow-brand);
}

.vh-how.is-visible .vh-how__step-num span {
  color: var(--vh-white);
}


/* Step icons (CSS-generated) */
.vh-how__step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--vh-space-5);
  position: relative;
  opacity: 0.7;
}

/* Gallery icon — 4 squares */
.vh-how__step-icon::before,
.vh-how__step-icon::after {
  content: '';
  position: absolute;
  border-radius: 4px;
  border: 2px solid var(--vh-purple);
}

.vh-how__step-icon::before {
  width: 20px; height: 20px;
  top: 2px; left: 4px;
}

.vh-how__step-icon::after {
  width: 20px; height: 20px;
  top: 2px; right: 4px;
  border-color: var(--vh-magenta);
}

/* Config/sliders icon */
.vh-how__step-icon--config::before {
  width: 36px; height: 2px;
  top: 12px; left: 6px;
  border: none;
  background: var(--vh-purple);
  border-radius: 1px;
}

.vh-how__step-icon--config::after {
  width: 36px; height: 2px;
  top: 28px; left: 6px;
  border: none;
  background: var(--vh-magenta);
  border-radius: 1px;
}

/* Ship icon */
.vh-how__step-icon--ship::before {
  width: 32px; height: 24px;
  top: 6px; left: 8px;
  border-color: var(--vh-purple);
  border-radius: 4px 4px 0 0;
}

.vh-how__step-icon--ship::after {
  width: 40px; height: 10px;
  bottom: 4px; left: 4px;
  border: none;
  background: var(--vh-gradient-cta);
  border-radius: 0 0 6px 6px;
}


.vh-how__step-heading {
  font-family: var(--vh-font-heading);
  font-size: var(--vh-text-2xl);
  font-weight: var(--vh-weight-regular);
  color: var(--vh-ink);
  margin-bottom: var(--vh-space-3);
  letter-spacing: var(--vh-tracking-tight);
}

.vh-how__step-desc {
  font-family: var(--vh-font-body);
  font-size: var(--vh-text-sm);
  color: var(--vh-charcoal);
  line-height: var(--vh-leading-relaxed);
  max-width: 320px;
  margin: 0 auto;
}


/* ── Material Quality Cards ── */

.vh-how__materials {
  position: relative;
}

.vh-how__materials-title {
  font-family: var(--vh-font-heading);
  font-size: var(--vh-text-2xl);
  font-weight: var(--vh-weight-regular);
  color: var(--vh-ink);
  text-align: center;
  margin-bottom: var(--vh-space-10);
  letter-spacing: var(--vh-tracking-tight);
}

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

.vh-how__mat-card {
  background: var(--vh-white);
  border-radius: var(--vh-radius-xl);
  overflow: hidden;
  border: 1px solid var(--vh-sand);
  transition: all var(--vh-duration-base) var(--vh-ease-out);
}

.vh-how__mat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vh-shadow-lg);
  border-color: transparent;
}


/* CSS texture swatches */
.vh-how__mat-swatch {
  height: 120px;
  position: relative;
  overflow: hidden;
}

/* Cotton — natural woven texture */
.vh-how__mat-swatch--cotton {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(139, 119, 101, 0.08) 3px, rgba(139, 119, 101, 0.08) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(139, 119, 101, 0.08) 3px, rgba(139, 119, 101, 0.08) 4px);
  background-color: #F0E8DE;
}

/* Cotton-poly — subtle crosshatch */
.vh-how__mat-swatch--cottonpoly {
  background:
    repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(139, 119, 101, 0.06) 4px, rgba(139, 119, 101, 0.06) 5px),
    repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(139, 119, 101, 0.06) 4px, rgba(139, 119, 101, 0.06) 5px);
  background-color: #EDE4D8;
}

/* Polyester — smooth with slight gloss */
.vh-how__mat-swatch--polyester {
  background: linear-gradient(160deg, #E8E0D6 0%, #F2EDE7 40%, #E5DDD3 100%);
}

.vh-how__mat-swatch--polyester::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
}

/* Wood — grain pattern */
.vh-how__mat-swatch--wood {
  background:
    repeating-linear-gradient(2deg, transparent, transparent 6px, rgba(101, 67, 33, 0.06) 6px, rgba(101, 67, 33, 0.06) 7px),
    repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(101, 67, 33, 0.04) 12px, rgba(101, 67, 33, 0.04) 14px);
  background-color: #D4B896;
}


.vh-how__mat-body {
  padding: var(--vh-space-5);
}

.vh-how__mat-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: var(--vh-weight-bold);
  letter-spacing: var(--vh-tracking-wider);
  text-transform: uppercase;
  color: var(--vh-purple);
  background: rgba(124, 58, 237, 0.08);
  padding: 3px 10px;
  border-radius: var(--vh-radius-full);
  margin-bottom: var(--vh-space-2);
}

.vh-how__mat-badge--popular {
  color: var(--vh-magenta);
  background: rgba(219, 39, 119, 0.08);
}

.vh-how__mat-name {
  font-family: var(--vh-font-heading);
  font-size: var(--vh-text-lg);
  font-weight: var(--vh-weight-medium);
  color: var(--vh-ink);
  margin-bottom: var(--vh-space-3);
}

.vh-how__mat-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--vh-space-1);
}

.vh-how__mat-specs li {
  font-size: var(--vh-text-xs);
  color: var(--vh-charcoal);
  padding-left: 16px;
  position: relative;
}

.vh-how__mat-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vh-stone);
}


/* ── Responsive ── */

@media (max-width: 767px) {
  .vh-how__steps {
    grid-template-columns: 1fr;
    gap: var(--vh-space-12);
  }

  .vh-how__line {
    display: none;
  }

  .vh-how__step-desc {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .vh-how__materials-grid {
    grid-template-columns: 1fr;
    gap: var(--vh-space-4);
  }
}
