/* ==========================================================================
   Ashburn Taylor — components.css
   Buttons, cards, service tiles, pills, forms
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.9rem;
  --pad-x: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
@keyframes btn-flow { to { background-position: 220% 0; } }

/* Primary = sophisticated dark button with a mint accent arrow (works on light + dark) */
.btn--primary {
  background: #15232f;
  color: #fff;
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 8px 22px -12px rgba(8,18,28,0.7);
}
.btn--primary svg { color: var(--mint); }
.btn--primary:hover {
  transform: translateY(-2px);
  border-color: var(--mint);
  box-shadow: 0 16px 32px -14px rgba(8,18,28,0.75);
}

/* Ghost on light (secondary) */
.btn--ghost,
.btn--cyan {
  background: transparent;
  color: var(--slate);
  border-color: var(--hairline-2);
}
.btn--ghost:hover,
.btn--cyan:hover { border-color: var(--mint); color: var(--mint-deep); transform: translateY(-2px); }

/* Outline-on-dark (secondary for slate sections / hero) */
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.btn--outline:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-2px); }

.btn--lg { --pad-y: 1.05rem; --pad-x: 2.1rem; font-size: 1rem; border-radius: 13px; }
.btn--block { width: 100%; }

/* Text link with arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--mint-deep);
  font-size: 0.95rem;
}
.on-dark .tlink { color: var(--mint); }
.tlink svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem;
  border-radius: 100px;
  border: 1px solid var(--hairline-2);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--body);
  box-shadow: var(--shadow-sm);
}
.on-dark .pill { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #fff; box-shadow: none; }
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
}
.pill__dot--pulse { animation: pulse 2.2s infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,245,197,.5); }
  60% { box-shadow: 0 0 0 8px rgba(52,245,197,0); }
}

/* ---------- Card (white) ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--mint);
  box-shadow: var(--shadow-lg);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--body); font-size: 0.96rem; }

/* ---------- Service tile (icon + title) ---------- */
.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.service:hover { transform: translateY(-6px); border-color: var(--mint); box-shadow: var(--shadow); }
.service__icon {
  width: 76px; height: 76px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  transition: background .35s var(--ease);
}
.service:hover .service__icon { background: var(--accent-grad-soft); }
.service__icon img { width: 46px; height: 46px; object-fit: contain; mix-blend-mode: multiply; }
.service h3 { font-size: 1.18rem; margin: 0; }
.service p { font-size: 0.94rem; }

/* ---------- Tick list ---------- */
.ticklist { list-style: none; display: grid; gap: 0.65rem; margin-top: 1rem; }
.ticklist li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  color: var(--body); font-size: 0.96rem;
}
.ticklist li svg { flex: none; width: 20px; height: 20px; color: var(--mint-deep); margin-top: 2px; }
.on-dark .ticklist li { color: var(--on-dark-soft); }
.on-dark .ticklist li svg { color: var(--mint); }

/* ---------- Stats ---------- */
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1;
  color: var(--ink);
}
.on-dark .stat__num { color: #fff; }
.stat__num.grad-text { color: transparent; }
.stat__label { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.on-dark .stat__label { color: var(--on-dark-mute); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(52,245,197,0.18);
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.form-status { font-size: 0.92rem; font-weight: 500; color: var(--mint-deep); min-height: 1.2em; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  color: var(--muted); white-space: nowrap;
}
.marquee__item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--hairline-2);
  border-radius: 100px;
  background: #fff;
  font-weight: 500; font-size: 0.94rem; color: var(--body);
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--mint); color: var(--mint-deep); transform: translateY(-2px); }
.roles { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.role-tag {
  padding: 0.5rem 1rem; border-radius: 8px;
  border: 1px solid var(--hairline-2); background: var(--bg-soft);
  font-size: 0.9rem; color: var(--body);
}

/* ---------- Sticky "call us" floating widget ---------- */
.call-fab {
  position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 200;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.35rem 0.85rem 0.95rem;
  border-radius: 100px;
  background: linear-gradient(120deg, var(--teal), var(--cyan));
  color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  letter-spacing: -0.01em; text-decoration: none;
  box-shadow: 0 14px 32px -10px rgba(28, 197, 163, 0.7), 0 4px 12px -6px rgba(0,0,0,0.3);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.call-fab:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(28, 197, 163, 0.8), 0 6px 16px -6px rgba(0,0,0,0.35); }
.call-fab:active { transform: translateY(-1px); }
.call-fab__ico {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
}
.call-fab__ico svg { width: 18px; height: 18px; }
@keyframes call-fab-ring {
  0%, 60%, 100% { transform: rotate(0); }
  8%, 24%, 40% { transform: rotate(-11deg); }
  16%, 32%, 48% { transform: rotate(11deg); }
}
.call-fab__ico svg { animation: call-fab-ring 3s var(--ease) 1.5s infinite; transform-origin: 50% 55%; }
@media (max-width: 560px) {
  .call-fab { padding: 0; width: 56px; height: 56px; justify-content: center; border-radius: 50%; }
  .call-fab__label { display: none; }
  .call-fab__ico { background: none; width: auto; height: auto; }
  .call-fab__ico svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .call-fab, .call-fab__ico svg { transition: none; animation: none; }
}
