/* ============================================================================
 *  components.css — buttons, nav, service menu, quotes, fields, ratings,
 *  and the lacquer-swatch decal (type-forward feature panel).
 * ========================================================================== */

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --_bg: var(--emerald); --_fg: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.5em; font-family: var(--font); font-size: var(--step-0); font-weight: 650;
  line-height: 1; color: var(--_fg); background: var(--_bg); border: 1.5px 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);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-cta); 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.8em; font-size: var(--step-1); }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { --_bg: var(--surface); box-shadow: var(--shadow-1); border-color: var(--emerald-300); color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

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

/* ---- Pills / stars ------------------------------------------------------ */
.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(--ink);
  border: 1px solid var(--line); border-radius: var(--r-pill);
}
.pill svg { width: 1em; height: 1em; color: var(--emerald-700); }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 1.05em; height: 1.05em; }

/* ---- Service menu ------------------------------------------------------- */
.menu-group { break-inside: avoid; }
.menu-group + .menu-group { margin-top: var(--space-l); }
.menu-group__title {
  font-family: var(--font); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--emerald-700); margin-bottom: var(--space-2xs);
  display: flex; align-items: center; gap: 0.6em;
}
.menu-group__title::before { content: ""; width: 1.4rem; height: 2px; background: var(--coral); border-radius: 2px; }
.menu-item { padding-block: var(--space-s); border-top: 1px solid var(--line); }
.menu-item__name { font-family: var(--font-display); font-size: var(--step-2); font-weight: 620; line-height: 1.15; letter-spacing: -0.01em; }
.menu-item__desc { color: var(--muted); font-size: var(--step-0); margin-top: 0.15em; max-width: 46ch; }

/* ---- 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); position: relative; overflow: hidden;
}
.quote::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: linear-gradient(var(--coral), var(--emerald));
}
.quote__text {
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.4;
  letter-spacing: -0.01em; color: var(--ink);
}
.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(--coral-100); color: var(--coral-ink); font-weight: 700; font-size: var(--step-0);
}
.quote__who { font-weight: 650; font-size: var(--step-0); line-height: 1.2; }
.quote__src { font-size: var(--step--1); color: var(--muted); }

/* ---- Lacquer-swatch decal (decorative; aria-hidden) -------------------- */
.swatch-card {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background:
    radial-gradient(120% 120% at 15% 0%, var(--emerald-100), transparent 55%),
    linear-gradient(150deg, var(--surface), var(--surface-sink));
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
  padding: clamp(1.75rem, 4vw, 3rem); aspect-ratio: 16/13;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-l);
}
.swatch-card__row { display: flex; flex-wrap: wrap; gap: clamp(0.7rem, 2vw, 1.15rem); }
.swatch {
  width: clamp(2.4rem, 6vw, 3.4rem); aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset 0 -6px 14px oklch(20% 0.04 168 / 0.18), 0 4px 10px oklch(30% 0.03 168 / 0.18);
  position: relative;
}
.swatch::after {
  content: ""; position: absolute; inset: 16% 50% 50% 18%;
  background: oklch(100% 0 0 / 0.55); border-radius: 50%; filter: blur(1px);
}
.swatch-card__cap { display: flex; align-items: center; gap: 0.7em; }
.swatch-card__cap .stars { font-size: var(--step-1); }
.swatch-card__cap span { font-family: var(--font-display); font-weight: 620; font-size: var(--step-2); color: var(--ink); }
.swatch-card__cap small { display: block; font-family: var(--font); font-weight: 500; font-size: var(--step--1); color: var(--muted); letter-spacing: 0; }

/* ---- Form fields -------------------------------------------------------- */
.field { display: grid; gap: 0.45em; }
.field > label { font-size: var(--step--1); font-weight: 650; }
.field .req { color: var(--coral-ink); }
.input, .textarea, .select {
  width: 100%; padding: 0.8em 0.95em; font: inherit; color: var(--ink);
  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(--emerald); box-shadow: 0 0 0 3px var(--emerald-100); }
.textarea { min-height: 120px; 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(--emerald); width: 1.05em; height: 1.05em; flex: none; }

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