/* ===================================================================
   FirmForte — Components
   -------------------------------------------------------------------
   Reusable patterns used across 3+ sections.
   Change a component here, it changes everywhere.
   =================================================================== */

/* ---------- Eyebrow label ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--ink-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  text-align: center;
}

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #2A2B30; transform: translateY(-1px); }

.btn-accent { background: var(--accent); color: var(--ink); font-weight: 600; }
.btn-accent:hover { background: #B5ED32; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-elev); border-color: var(--ink-muted); }

.btn-on-dark {
  background: transparent;
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font-size: 14px;
}
.btn-ghost:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

.btn .arrow { transition: transform 0.18s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Section header pattern ---------- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 56px;
  gap: 36px;
}
.section-header-left { max-width: 640px; }
.section-header h2 { margin-bottom: 16px; margin-top: 14px; }
.section-header p { color: var(--ink-soft); }

@media (max-width: 768px) {
  .section-header { flex-direction: column; align-items: start; gap: 22px; }
}

/* ---------- Lime mark (highlighted phrase in headings) ---------- */
.lime-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.lime-mark::before {
  content: '';
  position: absolute;
  inset: 14% -4% 14% -4%;
  background: var(--accent);
  z-index: -1;
  transform: rotate(-1deg);
  border-radius: 4px;
}
.lime-mark-solid {
  background: var(--accent);
  color: var(--ink);
  padding: 0 12px;
  border-radius: 6px;
  display: inline-block;
}

/* ---------- Form fields ---------- */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-row label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--ink); }
.form-row textarea { resize: vertical; min-height: 80px; font-family: var(--font-sans); }

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.form-row-split .form-row { margin-bottom: 0; }
@media (max-width: 540px) { .form-row-split { grid-template-columns: 1fr; } }

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 14px;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(47, 158, 92, 0.1);
  color: var(--success);
  border: 1px solid rgba(47, 158, 92, 0.3);
}
.form-status.error {
  display: block;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(199, 62, 62, 0.3);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Back to top button ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--t-base), transform var(--t-base);
  z-index: var(--z-sticky);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: #2A2B30; transform: translateY(-2px); }
@media (max-width: 768px) {
  .back-to-top { bottom: 88px; right: 16px; } /* clear of mobile CTA bar */
}
