/* Copyright 2026 Renofy Ltd. All rights reserved. */

/* ============================================================
   How It Works page — .hiw-* BEM component styles
   Mobile-first, 820px breakpoint matches project convention
   ============================================================ */

/* Full-bleed override — base.css adds margin-top (mobile) and
   margin-block-start + padding-inline (desktop) to <main>. */
body.page-how-it-works main {
  margin-top: 0;
}

@media (min-width: 821px) {
  body.page-how-it-works main {
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline: 0;
  }
}

/* Layout container */
.hiw-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   Hero
   ============================================================ */

.hiw-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--height-header) + env(safe-area-inset-top, 0px) + 3rem) 0 3rem;
  background: linear-gradient(135deg, #0c0c1d 0%, #141e38 40%, #154484 70%, #0c0c1d 100%);
}

/* Dot grid overlay — matches landing page and CTA sections */
.hiw-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hiw-hero .hiw-container {
  position: relative;
  z-index: 1;
}

.hiw-hero__headline {
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-normal);
  color: var(--color-white);
  margin: 0;
}

.hiw-hero__accent {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--color-pink);
}


@media (min-width: 821px) {
  .hiw-hero {
    padding: calc(var(--height-header) + 1rem + 4rem) 0 5rem;
  }

  .hiw-hero__headline {
    font-size: var(--font-size-4xl);
  }

}

/* ============================================================
   Value sections — editorial numbered blocks
   Deliberately not cards: no box shadows, no grid layout
   White background for maximum reading clarity
   ============================================================ */

.hiw-values {
  padding: 2.5rem 0;
}

.hiw-values__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-pink);
  margin-bottom: 2.5rem;
}

.hiw-values__item:last-child {
  margin-bottom: 0;
}

.hiw-values__num {
  font-size: 14px; /* intentional: fixed size for consistent appearance across breakpoints */
  font-weight: var(--font-weight-extrabold);
  color: var(--color-pink);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.hiw-values__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 0.5rem;
  line-height: var(--line-height-tight);
}

.hiw-values__desc {
  font-size: 16px; /* intentional: fixed size for consistent appearance across breakpoints */
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
  margin: 0;
}

@media (min-width: 821px) {
  .hiw-values {
    padding: 3.5rem 0;
  }

  .hiw-values__item {
    flex-direction: row;
    align-items: baseline;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-left: 1.5rem;
  }

  .hiw-values__num {
    flex-shrink: 0;
    width: 2rem;
    margin-bottom: 0;
    line-height: 1;
  }

  .hiw-values__body {
    flex: 1;
  }

  .hiw-values__title {
    font-size: var(--font-size-xl);
    margin-bottom: 0.625rem;
  }
}

/* ============================================================
   Mid-page CTA — a natural pause between values and benefits.
   Tagline anchors the button. Lighter touch than the
   dark closing CTA — confident but not heavy.
   ============================================================ */

.hiw-mid-cta {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0;
  text-align: center;
  background: linear-gradient(135deg, #0c0c1d 0%, #141e38 40%, #154484 70%, #0c0c1d 100%);
}

.hiw-mid-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hiw-mid-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hiw-mid-cta__tagline {
  margin: 0 0 1.5rem;
  font-size: var(--font-size-lg);
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 821px) {
  .hiw-mid-cta {
    padding: 3.5rem 2rem;
  }

  .hiw-mid-cta__tagline {
    font-size: var(--font-size-xl);
  }
}

/* ============================================================
   What you get
   Light background creates visual layering
   ============================================================ */

.hiw-benefits {
  padding: 2.5rem 0;
  background-color: var(--color-bg-surface);
}

.hiw-benefits__heading {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 1.25rem;
}

.hiw-benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.hiw-benefits__card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: none;
  border-top: 3px solid;
  background: var(--color-white);
  box-shadow: var(--shadow);
}

.hiw-benefits__card--trade {
  border-top-color: var(--color-blue);
}

.hiw-benefits__card--customer {
  border-top-color: var(--color-pink);
}

.hiw-benefits__card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin: 0;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hiw-benefits__card--trade .hiw-benefits__card-title {
  color: var(--color-blue);
}

.hiw-benefits__card--customer .hiw-benefits__card-title {
  color: var(--color-pink);
}

.hiw-benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hiw-benefits__list li {
  font-size: 16px; /* intentional: fixed size for consistent appearance across breakpoints */
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hiw-benefits__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hiw-benefits__list li strong {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}

@media (min-width: 821px) {
  .hiw-benefits {
    padding: 3.5rem 0;
  }

  .hiw-benefits__heading {
    margin-bottom: 1.5rem;
  }

  .hiw-benefits__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .hiw-benefits__card {
    padding: 1.75rem 2rem;
  }
}

/* ============================================================
   FAQ
   ============================================================ */

.hiw-faq {
  padding: 2.5rem 0;
}

.hiw-faq__heading {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 1.25rem;
}

.hiw-faq__item {
  border-bottom: 1px solid var(--color-border);
}

.hiw-faq__item:first-of-type {
  border-top: 1px solid var(--color-border);
}

.hiw-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 16px; /* intentional: fixed size for consistent appearance across breakpoints */
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
  gap: 1rem;
}

.hiw-faq__question::-webkit-details-marker {
  display: none;
}

.hiw-faq__question::after {
  content: '\203A'; /* chevron › */
  flex-shrink: 0;
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  transition: transform var(--transition-fast);
  line-height: 1;
  transform: rotate(90deg);
}

.hiw-faq__item[open] .hiw-faq__question::after {
  transform: rotate(270deg);
}

.hiw-faq__answer {
  font-size: 16px; /* intentional: fixed size for consistent appearance across breakpoints */
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
  padding: 0 0 1rem;
  margin: 0;
}

.hiw-faq__footer {
  margin-top: 1.25rem;
  text-align: center;
}

.hiw-faq__link {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hiw-faq__link:hover {
  color: var(--color-pink);
}

@media (min-width: 821px) {
  .hiw-faq {
    padding: 3.5rem 0;
  }
}

/* ============================================================
   Bottom CTA — matches home page closing section exactly.
   Styles duplicated from home-landing.css since that stylesheet
   is not loaded on this page.
   ============================================================ */

.lp-closing {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--color-white);
  background: linear-gradient(135deg, #0c0c1d 0%, #141e38 40%, #154484 70%, #0c0c1d 100%);
}

/* Dot grid overlay */
.lp-closing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Glow blobs */
.lp-closing__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.lp-closing__blob--2 {
  bottom: -20%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.08) 0%, transparent 60%);
}

.lp-closing__title {
  position: relative;
  z-index: var(--z-index-base);
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tight);
  margin: 0 0 1.5rem;
  color: var(--color-white);
}

.lp-closing__cta-wrap {
  position: relative;
  z-index: var(--z-index-base);
}
