/* Daylight theme — cards. The single card vocabulary (see CONTEXT.md):
   .card in a .card-grid, with modifiers --step (numbered step-no cards),
   --tight (24px padding), --lift (hover turns spruce), --gran (spruce),
   --fact (key-figure typography; har-finns-vi + om-oss). Every card lifts
   and zooms on hover by default. */

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: var(--gap, 18px);
}

/* Content-driven card counts (services copy, /en/) wrap by width instead */
.card-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

@media (max-width: 1000px) {
  .card-grid:not(.card-grid--auto) {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .card-grid:not(.card-grid--auto) {
    grid-template-columns: 1fr;
  }
}

/* ---------- Card base: quiet white surface, visible hairline ---------- */
.card {
  background: var(--c-vit);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform var(--speed) var(--ease), border-color var(--speed), box-shadow var(--speed), background-color var(--speed);
}

/* The default hover: a small lift + zoom (the Sweden-strip move) */
.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-soft);
}

.card--tight {
  padding: 24px;
}

.card .over {
  margin-bottom: 10px;
}

.card h3 {
  margin-bottom: 6px;
}

.card p {
  font-size: 0.95rem;
  color: var(--c-ink-muted);
}

/* ---------- Cards on the spruce band: tone-on-tone ----------
   The card keeps the band's surface and takes its hairline and muted text
   from the band-scoped tokens (h3 already follows --tx). */
.sec--gran .card {
  background: var(--surface);
  border-color: var(--line);
}

.sec--gran .card p {
  color: var(--tx-muted);
}

/* ---------- --lift: hover also turns the card spruce ----------
   On top of the base pop, color to gran — the Sweden-strip inversion. */
.card--lift :is(h2, h3, p, b, .over, .step-no) {
  transition: color var(--speed), background-color var(--speed);
}

.card--lift:hover {
  background: var(--c-fill);
  border-color: var(--c-fill);
}

.card--lift:hover .over {
  color: var(--text-on-gran);
}

.card--lift:hover h2,
.card--lift:hover h3,
.card--lift:hover b {
  color: var(--text-on-gran);
}

.card--lift:hover p {
  color: var(--text-on-gran-muted);
}

.card--lift:hover .step-no {
  background: var(--tint-on-gran);
  color: var(--text-on-gran);
}

/* ---------- --step: numbered cards (process rail, om-oss values) ---------- */
.card--step .step-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--c-dis);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--c-gran-djup);
  margin-bottom: 18px;
}

.card--step h3 {
  font-size: 1.12rem;
}

/* ---------- --fact: key-figure typography (big numeral + mono label) ---------- */
.card--fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--c-granit);
}

.card--fact span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  transition: color var(--speed);
}

/* On the spruce hover (core .card--lift) the figure label follows along */
.card--fact.card--lift:hover span {
  color: var(--text-on-gran-muted);
}

/* ---------- --gran: the spruce card (process CTA, model flow) ---------- */
.card--gran {
  background: var(--c-fill);
  border-color: var(--c-fill);
}

/* The soft daylight shadow is invisible under a dark card — go deeper */
.card--gran:hover {
  border-color: var(--c-fill);
  box-shadow: 0 12px 32px rgba(27, 29, 27, 0.25);
}

.card--gran .over {
  color: var(--text-on-gran);
}

.card--gran h2,
.card--gran h3 {
  color: var(--text-on-gran);
}

.card--gran p {
  color: var(--text-on-gran-muted);
  margin-bottom: 14px;
}

.card--gran .step-no {
  background: var(--tint-on-gran);
  color: var(--text-on-gran);
}

.card--gran a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-on-gran);
  text-decoration: none;
  border-bottom: 1px solid var(--line-on-gran);
  padding-bottom: 2px;
  transition: border-color var(--speed);
}

.card--gran a:not(.btn):hover {
  border-color: var(--text-on-gran);
}

/* ---------- Process band chrome (head row + closing phone line) ---------- */
.process-sec {
  padding-block: clamp(64px, 7vw, 96px);
}

.process-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.process-head .sec-head {
  margin-bottom: 0;
}

.process-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

@media (max-width: 1000px) {
  .process-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.process-call {
  margin-top: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-ink-muted);
}

.process-call a {
  color: var(--c-gran);
  text-decoration: none;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 2px;
  transition: border-color var(--speed);
}

.process-call a:hover {
  border-color: var(--c-gran);
}

/* Placeholder content awaiting real copy (quotes, kundcase figures) —
   dash-outlined so it can't slip through a review unnoticed. Remove the
   class together with the placeholder text. */
.ph {
  outline: 1px dashed currentColor;
  outline-offset: 3px;
  opacity: 0.75;
}
