/* Reusable components: buttons, chips, cards, quotes, form controls. */

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-med) var(--ease),
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--shadow-warm);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px -14px rgba(216, 80, 47, 0.48);
}

/* Solid black, matching the logo mark, for the persistent nav CTA. */
.btn-brand {
  background: #000;
  box-shadow: none;
}

.btn-brand:hover {
  background: #000;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.5);
}

/* Narrower padding + smaller type, for a secondary CTA sitting next to a
   full-size button in tight nav space. */
.btn-compact {
  padding: 12px 14px;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(21, 32, 59, 0.04);
}

.band--ink .btn-ghost {
  border-color: var(--line-ink);
  color: var(--on-dark);
}

.band--ink .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  padding: 18px 28px;
  font-size: 16px;
}

/* Text link with a nudging arrow. */
.qlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}

.qlink svg {
  transition: transform var(--t-fast) var(--ease);
}

.qlink:hover {
  color: var(--coral-deep);
}

.qlink:hover svg {
  transform: translateX(3px);
}

.band--ink .qlink {
  color: var(--on-dark);
}

/* ---- Chips ------------------------------------------------------------- */

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bone-card);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  transition: border-color var(--t-fast) var(--ease);
}

a.badge-chip:hover {
  border-color: var(--ink);
}

.badge-chip img {
  width: auto;
  height: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(236, 106, 76, 0.1);
  color: var(--coral-ink);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
}

.pill--pos {
  background: rgba(34, 167, 106, 0.12);
  color: var(--pos);
}

/* ---- Cards ------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-card);
  transition:
    transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 32, 59, 0.16);
  box-shadow: var(--shadow-md);
}

.card > p {
  margin-top: var(--sp-3);
}

/* Reserve the same body height across the three service cards so the
   bullet lists start on the same row, whatever the paragraph length. */
.svc-card > p {
  min-height: 132px;
}

/* Service card: CTA pins to the bottom whatever the body length. */
.svc-card .card-cta {
  margin-top: auto;
  padding-top: var(--sp-5);
}

/* Underline grows in from the left on hover instead of just nudging the
   arrow, so the link reads as a deliberate control, not stray text. */
/* Underline sits under the link at rest; hover thickens it and fills it
   with the accent gradient, rather than growing it in from nothing. */
.svc-card .card-cta .qlink {
  position: relative;
  padding-bottom: 3px;
}

.svc-card .card-cta .qlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--line);
  transition:
    height var(--t-fast) var(--ease),
    background var(--t-med) var(--ease);
}

.svc-card .card-cta .qlink:hover::after {
  height: 2.5px;
  background: var(--accent-grad);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--sp-5);
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(216, 80, 47, 0.55);
  transition: transform var(--t-med) var(--ease);
}

.svc-card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
}

.band--ink .card-icon {
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.4);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.card-list li {
  position: relative;
  padding-left: 24px;
  font-size: var(--fs-ui);
  color: var(--muted);
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---- Stat block -------------------------------------------------------- */

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.stat-value {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ---- Quote ------------------------------------------------------------- */

.quote {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-card);
}

.quote-body {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text);
}

.quote-foot {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-5);
}

.quote-foot img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-name {
  font-size: var(--fs-ui);
  font-weight: 700;
  color: var(--ink);
}

.quote-role {
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ---- Form controls ----------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.field > label {
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--ink);
}

.control {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: var(--fs-ui);
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.control:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(236, 106, 76, 0.16);
}

/* Radio/checkbox rendered as a selectable card. */
.opt {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: var(--fs-ui);
  cursor: pointer;
  transition:
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.opt:hover {
  border-color: rgba(21, 32, 59, 0.24);
}

.opt input {
  accent-color: var(--coral-deep);
  width: 17px;
  height: 17px;
  flex: none;
}

.opt:has(input:checked) {
  border-color: var(--coral);
  background: rgba(236, 106, 76, 0.06);
}

/* ---- Meter ------------------------------------------------------------- */

.meter {
  height: 10px;
  border-radius: var(--r-pill);
  background: rgba(21, 32, 59, 0.1);
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-grad);
  transition: width 0.6s var(--ease);
}

/* ---- Marquee-free logo row --------------------------------------------- */

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 52px);
  flex-wrap: wrap;
}

.logo-row img {
  height: 26px;
  width: auto;
  opacity: 0.62;
  filter: grayscale(1);
  transition:
    opacity var(--t-med) var(--ease),
    filter var(--t-med) var(--ease);
}

.logo-row img:hover {
  opacity: 1;
  filter: none;
}

/* ---- Text-based client wordmarks ---------------------------------------
   Replaces image logo placeholders. Set in the display face at a weight that
   reads as a mark rather than as body copy. Scales cleanly, no asset needed,
   and stays legible against the bone ground at small sizes. */

.wordmark-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  opacity: 0.55;
  white-space: nowrap;
  transition:
    opacity var(--t-med) var(--ease),
    color var(--t-med) var(--ease);
}

a.wordmark:hover,
.wordmark:hover {
  opacity: 1;
  color: var(--coral-ink);
}

/* Small caps variant for a mark that needs to read as a logotype, not a name. */
.wordmark--caps {
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.band--ink .wordmark {
  color: var(--on-dark);
  opacity: 0.6;
}

.band--ink .wordmark:hover {
  color: var(--amber);
  opacity: 1;
}

/* ---- Draft flag ---------------------------------------------------------
   Marks content that is written but not yet approved by the named party.
   Delete the element (and this rule) once sign-off is in. */

.draft-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px dashed var(--coral);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--coral-ink);
}

/* ---- Scrolling wordmark marquee -----------------------------------------
   The track is duplicated in the markup and translated by exactly -50%, so the
   second copy lands where the first began and the loop has no visible seam.
   Edge masks fade the entries in and out rather than clipping them abruptly. */

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(28px, 5vw, 56px);
  padding-block: var(--sp-2);
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.marquee-track > * {
  flex: none;
}

/* Square icon before each client name. */
.marquee-track .wordmark::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  border-radius: 2px;
  background: var(--line);
  vertical-align: middle;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Static, wrapped, and scrollable by hand when motion is unwelcome. */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-track .wordmark::before {
    display: none;
  }
}

/* ---- Review card --------------------------------------------------------
   Star row, quote with highlighted spans, initials avatar, attribution. */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.review {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-card);
  transition:
    transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease);
}

.review:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stars {
  display: flex;
  gap: 3px;
  color: var(--coral);
}

.review-body {
  margin-top: var(--sp-4);
  font-size: var(--fs-ui);
  line-height: 1.62;
  color: var(--text);
}

/* Highlight for the sentence that carries the point. */
.review-body mark {
  padding: 1px 2px;
  border-radius: 3px;
  background: rgba(244, 162, 60, 0.32);
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.review-foot {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-5);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(236, 106, 76, 0.14);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--coral-ink);
}

.review-foot > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.review-name {
  font-size: var(--fs-ui);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.review-role {
  font-size: var(--fs-xs);
  line-height: 1.2;
  color: var(--muted);
}

/* Hidden until "load more" is pressed. */
.review[hidden] {
  display: none;
}

.review-more {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-7);
}

.review-more .btn span {
  font-weight: 400;
  color: var(--muted);
}

@media (max-width: 900px) {
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .review-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
