/* ============================================================
   Clearcost — home.css
   Styles used only by index.html. Load after global.css.
   ============================================================ */

/* Hero image treatment */
.hero--home .hero-img { object-position: center; }

/* ============================================================
   HOME
   ============================================================ */

/* Intro statement + feature icons */
.intro {
  padding: clamp(80px, 9vw, 110px) 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
  text-align: center;
}
.statement {
  margin: 0;
  max-width: 1200px;
  font-size: clamp(28px, 3.6vw, 3.5rem);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem 2rem;
  width: 100%;
  max-width: 1200px;
  justify-items: center;
  align-items: start;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  color: inherit;
  transition: var(--t);
}
.feature:hover { opacity: 0.6; text-shadow: var(--text-glow); }
.feature svg { width: 64px; height: 64px; }
.feature-label {
  display: flex;
  flex-direction: column;
  font-size: 1.625rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* What we do */
.wwd {
  padding: clamp(80px, 9vw, 130px) 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
}
.wwd .h2 { max-width: 1000px; }
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 1200px;
}
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface-grey);
  border-radius: 16px;
  padding: 0.75rem;
  color: inherit;
  transition: var(--t);
  box-shadow: var(--glow-0);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--glow); }
.card-img { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 1rem 1rem; flex: 1; }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted);
}
.card-meta svg { color: var(--accent); flex: none; }
.card h3 { margin: 0; font-size: 1.625rem; line-height: 1.1; font-weight: 400; letter-spacing: -0.03em; }
.card p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* How we work */
.hww-section { padding: 0 2.5rem; display: flex; justify-content: center; }
.hww {
  width: 100%;
  max-width: 1440px;
  background: var(--surface-grey);
  color: var(--ink);
  border-radius: 16px;
  padding: clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
}
.hww-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.hww-head-left { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.hww-head .h2 { max-width: 16ch; }
.hww-side { margin: 0; max-width: 380px; font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); }
.hww-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: stretch;
}
.steps { display: flex; flex-direction: column; }
.step {
  cursor: pointer;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 0.5px solid rgba(46, 46, 46, 0.15);
  opacity: 0.4;
  transition: var(--t);
}
.step:hover { opacity: 1; text-shadow: var(--text-glow); }
.step.is-active { opacity: 1; }
.step-n { font-family: var(--mono); font-size: 0.875rem; }
.step-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: clamp(22px, 2vw, 1.75rem);
  letter-spacing: -0.025em;
}
.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.step.is-active .step-dot { opacity: 1; }

.step-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: clamp(28px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 380px;
}
.step-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.step-big { font-size: clamp(72px, 8vw, 8rem); line-height: 0.85; font-weight: 400; letter-spacing: -0.05em; }
.step-count { font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }
.step-card-body { display: flex; flex-direction: column; gap: 1.25rem; }
.step-card h3 { margin: 0; font-size: clamp(28px, 2.6vw, 2.5rem); line-height: 1.05; font-weight: 500; letter-spacing: -0.035em; }
.step-card p { margin: 0; font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); max-width: 520px; text-wrap: pretty; }
.step-out { display: flex; align-items: center; gap: 12px; padding-top: 1.25rem; border-top: 0.5px solid var(--hairline); }
.step-out-label { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.step-out-value { font-size: 1rem; font-weight: 500; }
.progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.progress span {
  cursor: pointer;
  height: 4px;
  border-radius: 2px;
  background: rgba(46, 46, 46, 0.15);
  transition: background 0.3s;
}
.progress span.is-on { background: var(--accent); }

/* Industries */
.industries {
  padding-top: clamp(80px, 9vw, 130px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
}
.industries h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.industries-img { aspect-ratio: 3 / 2; margin-top: 40px; border-radius: 16px; overflow: hidden; }
.industries-img img { width: 100%; height: 100%; object-fit: cover; }
.sector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 0.5px solid var(--hairline);
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  transition: var(--t);
}
.sector:hover { padding-left: 12px; text-shadow: var(--text-glow); }
.sector svg { flex: none; }

/* Results & insights */
.insights { padding-top: 0; }
.insights .kicker { margin-bottom: 28px; }
.stories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.story { display: flex; flex-direction: column; gap: 16px; color: inherit; }
.story-img { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-tag { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.story h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
  .story:hover .story-img img { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .intro { padding: 5rem 1.25rem; gap: 3.5rem; }
  .statement { font-size: clamp(24px, 6.8vw, 28px); }
  .features { gap: 2.5rem 1rem; }
  .feature { gap: 1rem; }
  .feature svg { width: 48px; height: 48px; }
  .feature-label { font-size: 1.25rem; }

  .wwd { padding: 5rem 1.25rem; gap: 3rem; }
  .card h3 { font-size: 1.375rem; }

  .hww-section { padding: 0 1.25rem; }
  .hww { border-radius: 12px; gap: 2rem; }
  .hww-head .h2 { max-width: none; }
  .step { padding: 1rem 0; grid-template-columns: 40px minmax(0, 1fr); }
  .step-title { font-size: 1.25rem; }
  .step-card { min-height: 0; gap: 1.75rem; padding: 24px 20px; }
  .step-big { font-size: 56px; }
  .step-card h3 { font-size: 1.5rem; }
  .step-card p { font-size: 1rem; }

  .industries { gap: 32px; padding-top: 5rem; }
  .industries-img { margin-top: 24px; }
  .sector { padding: 14px 0; }
  .story h3 { font-size: 20px; }
}
