/* ============================================================================
 *  components.css — buttons, nav, fields, cards, quotes, pills, ratings.
 * ========================================================================== */

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --_bg: var(--lilac);
  --_fg: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.45em;
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1;
  color: var(--_fg);
  background: var(--_bg);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lilac); color: var(--_fg); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.btn--lg { padding: 1.02em 1.7em; font-size: var(--step-1); }

.btn--ghost {
  --_bg: transparent;
  --_fg: var(--plum);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  --_bg: var(--surface);
  box-shadow: var(--shadow-1);
  border-color: var(--lilac-300);
  color: var(--plum);
}

.btn--quiet {
  --_bg: transparent; --_fg: var(--plum);
  padding-inline: 0.2em; border-radius: 0;
}
.btn--quiet:hover { box-shadow: none; color: var(--lilac-700); }

.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* link with arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; text-decoration: none; color: var(--lilac-700);
}
.arrow-link svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---- Pills / tags ------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.4em 0.85em;
  font-size: var(--step--1); font-weight: 500;
  background: var(--surface); color: var(--plum);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.pill svg { width: 1em; height: 1em; color: var(--lilac-700); }

/* ---- Star rating -------------------------------------------------------- */
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 1.05em; height: 1.05em; }

/* ---- Cards -------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-l);
  box-shadow: var(--shadow-1);
}

/* ---- Service row -------------------------------------------------------- */
.service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4em 1.1em;
  padding-block: var(--space-m);
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--lilac-300);
  font-weight: 500;
  line-height: 1.2;
  grid-row: span 2;
}
.service__name { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
.service__desc { color: var(--muted); font-size: var(--step-0); max-width: 52ch; }

/* ---- Pull-quote / review ------------------------------------------------ */
.quote {
  display: flex; flex-direction: column; gap: var(--space-s);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-l);
  box-shadow: var(--shadow-1);
  break-inside: avoid;
}
.quote__text {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: color-mix(in oklab, var(--plum) 92%, var(--cream));
}
.quote__text::before { content: "\201C"; color: var(--lilac-300); margin-right: 0.04em; }
.quote__text::after  { content: "\201D"; color: var(--lilac-300); margin-left: 0.04em; }
.quote__foot { margin-top: auto; display: flex; align-items: center; gap: 0.8em; }
.quote__avatar {
  width: 2.5rem; height: 2.5rem; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--lilac-100); color: var(--lilac-700);
  font-weight: 600; font-size: var(--step-0);
}
.quote__who { font-weight: 600; font-size: var(--step-0); line-height: 1.2; }
.quote__src { font-size: var(--step--1); color: var(--muted); }

/* aggregate "read all reviews" card */
.quote--cta {
  text-decoration: none; color: var(--plum);
  background: linear-gradient(160deg, var(--lilac-100), var(--surface));
  border-color: var(--lilac-300);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.quote--cta:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: var(--plum); }
.quote--cta .quote__text { color: var(--plum); }
.quote--cta .quote__text::before,
.quote--cta .quote__text::after { content: none; }

/* ---- Form fields -------------------------------------------------------- */
.field { display: grid; gap: 0.45em; }
.field > label { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.01em; }
.field .req { color: var(--lilac-700); }

.input, .textarea, .select {
  width: 100%;
  padding: 0.8em 0.95em;
  font: inherit; color: var(--plum);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: color-mix(in oklab, var(--muted) 80%, transparent); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 0 3px var(--lilac-100);
}
.textarea { min-height: 130px; resize: vertical; }

.check { display: flex; align-items: flex-start; gap: 0.6em; font-size: var(--step--1); color: var(--muted); }
.check input { margin-top: 0.18em; accent-color: var(--lilac); width: 1.05em; height: 1.05em; flex: none; }

/* ---- Divider ------------------------------------------------------------ */
.rule { height: 1px; background: var(--line); border: 0; }

/* ---- Petal/leaf mark (logo + accents) ----------------------------------- */
.mark { color: var(--lilac); }
