/* ==========================================================================
   RaidPixels — components.css
   Buttons, hero, cards, forms, testimonials, stats, CTA, page headers.
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8rem 1.4rem;
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-200);
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-brand);
  background-size: 160% 160%;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { background-position: 100% 50%; box-shadow: 0 26px 60px -16px rgba(124,58,237,0.6); }

.btn--ghost {
  --btn-fg: var(--text);
  background: transparent;
  border-color: var(--line);
}
.btn--ghost:hover { --btn-fg: var(--brand-ink); border-color: var(--violet-500); background: var(--paper-2); }

.btn--on-dark {
  --btn-fg: var(--on-dark);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}
.btn--on-dark:hover { background: rgba(255,255,255,0.16); }

.btn--lg { padding: 1rem 1.8rem; font-size: var(--fs-300); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-100);
  font-weight: 600;
  background: var(--paper-3);
  color: var(--brand-ink);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.section--ink .pill { background: rgba(255,255,255,0.08); color: var(--cyan-300); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-ink);
  color: var(--on-dark);
  overflow: hidden;
  padding-block: var(--sp-9) var(--sp-9);
}
.hero::before {
  /* soft brand glows */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 12% 18%, rgba(124,58,237,0.35), transparent 70%),
    radial-gradient(38% 48% at 88% 30%, rgba(34,211,238,0.22), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-8);
  align-items: center;
}
.hero h1 { color: var(--on-dark); margin-top: var(--sp-4); }
.hero p.lead { color: var(--on-dark-muted); margin-top: var(--sp-5); font-size: var(--fs-400); max-width: 46ch; }
.hero .btn-row { margin-top: var(--sp-6); }
.hero-meta {
  margin-top: var(--sp-7);
  display: flex; flex-wrap: wrap; gap: var(--sp-6);
}
.hero-meta .stat strong {
  display: block;
  font-size: var(--fs-600);
  color: var(--on-dark);
  letter-spacing: -0.03em;
}
.hero-meta .stat span { font-size: var(--fs-100); color: var(--on-dark-muted); }
.hero-visual {
  position: relative;
  filter: drop-shadow(0 30px 50px rgba(10,8,30,0.5));
}
.hero-visual svg { width: 100%; height: auto; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero-visual { order: -1; max-width: 460px; }
}

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-6) var(--sp-7); }
.logo-strip .label { font-size: var(--fs-100); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.logo-strip .mark { font-weight: 800; letter-spacing: -0.02em; color: var(--muted); font-size: var(--fs-400); opacity: 0.7; }

/* ---------- Card grid ---------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--violet-500) 40%, var(--line)); }
.card .icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, color-mix(in srgb, var(--violet-500) 16%, #fff), color-mix(in srgb, var(--cyan-400) 14%, #fff));
  color: var(--brand-ink);
  margin-bottom: var(--sp-4);
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: var(--fs-400); }
.card p { color: var(--muted); margin-top: var(--sp-3); font-size: var(--fs-200); }
.card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--sp-4); font-weight: 700; font-size: var(--fs-200);
}
.card .card-link svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.card .card-link:hover svg { transform: translateX(4px); }

.card--feature { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5); align-items: start; }
@media (max-width: 620px) { .card--feature { grid-column: span 1; grid-template-columns: 1fr; } }

/* ---------- Step / process ---------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5); align-items: start;
  padding: var(--sp-5) 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.step:first-child { border-top: 0; }
.step .num {
  counter-increment: step;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: var(--ink);
  background: var(--grad-brand);
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: var(--fs-400); color: var(--on-dark); }
.step p { color: var(--on-dark-muted); margin-top: var(--sp-2); font-size: var(--fs-200); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: var(--sp-6); } .split.reverse .split-media { order: 0; } }
.split-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--grad-ink);
  box-shadow: var(--shadow-lg);
}
.split-media svg { width: 100%; height: auto; }
.checklist { list-style: none; padding: 0; display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; color: var(--muted); }
.checklist li strong { color: var(--text); font-weight: 700; }
.checklist .tick {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  display: grid; place-items: center; margin-top: 2px;
  background: color-mix(in srgb, var(--success) 14%, #fff); color: var(--success);
}
.checklist .tick svg { width: 14px; height: 14px; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 720px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stat-card { text-align: center; padding: var(--sp-5); }
.stat-card strong { display: block; font-size: var(--fs-700); letter-spacing: -0.03em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { color: var(--muted); font-size: var(--fs-200); }
.section--ink .stat-card span { color: var(--on-dark-muted); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.testimonial .quote { font-size: var(--fs-400); color: var(--text); line-height: 1.5; }
.testimonial .quote::before { content: "“"; color: var(--violet-500); font-size: 2.4rem; line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.testimonial .who { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.testimonial .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad-brand); }
.testimonial .who b { display: block; font-size: var(--fs-200); }
.testimonial .who span { font-size: var(--fs-100); color: var(--muted); }
.demo-tag { font-size: var(--fs-100); color: var(--muted-2); font-style: italic; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--grad-brand);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 50% -20%, rgba(255,255,255,0.25), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); margin: var(--sp-4) auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: var(--sp-6); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--grad-ink);
  color: var(--on-dark);
  padding-block: var(--sp-8) var(--sp-7);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 85% 0%, rgba(124,58,237,0.3), transparent 70%);
}
.page-header .container { position: relative; }
.page-header h1 { color: var(--on-dark); margin-top: var(--sp-3); }
.page-header p { color: var(--on-dark-muted); margin-top: var(--sp-4); font-size: var(--fs-400); }
.breadcrumb { font-size: var(--fs-100); color: var(--on-dark-muted); display: flex; gap: var(--sp-2); align-items: center; }
.breadcrumb a { color: var(--on-dark-muted); }
.breadcrumb a:hover { color: var(--cyan-300); }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-size: var(--fs-200); font-weight: 600; }
.field .req { color: var(--violet-500); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--fs-200);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet-500) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form .consent { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; font-size: var(--fs-100); color: var(--muted); }
.form .consent input { margin-top: 3px; }
.form-note { font-size: var(--fs-100); color: var(--muted-2); }

.form-success {
  display: none;
  align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--success) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--success) 35%, #fff);
  color: #14532d;
  font-weight: 600;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 22px; height: 22px; flex: none; }

/* ---------- Contact info cards ---------- */
.info-list { display: grid; gap: var(--sp-4); }
.info-item { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.info-item .icon { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--paper-3); color: var(--brand-ink); }
.info-item .icon svg { width: 22px; height: 22px; }
.info-item h4 { font-size: var(--fs-300); }
.info-item p, .info-item address { color: var(--muted); font-style: normal; font-size: var(--fs-200); margin-top: 2px; }
.info-item a { color: var(--brand-ink); font-weight: 600; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: var(--sp-4); }
.hours-table th, .hours-table td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-200); }
.hours-table th { font-weight: 600; color: var(--text); }
.hours-table td { color: var(--muted); text-align: right; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--brand-ink); font-weight: 700; }

.map-embed {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-500); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-400); margin-top: var(--sp-5); }
.prose p, .prose li { color: var(--muted); margin-top: var(--sp-3); }
.prose p { max-width: 72ch; }
.prose a { font-weight: 600; }
.prose strong { color: var(--text); }
.prose .placeholder-note {
  display: block;
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-left: 3px solid var(--violet-500);
  background: var(--paper-2);
  border-radius: var(--r-sm);
  font-size: var(--fs-100);
  color: var(--muted);
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--sp-7); }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
@media (max-width: 820px){ .value-grid { grid-template-columns: 1fr; } }
.team-card { text-align: center; }
.team-card .photo {
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--grad-ink); display: grid; place-items: center; margin-bottom: var(--sp-4);
}
.team-card .photo svg { width: 70%; }
.team-card h3 { font-size: var(--fs-400); }
.team-card .role { color: var(--brand-ink); font-weight: 600; font-size: var(--fs-200); }
.team-card p { color: var(--muted); font-size: var(--fs-200); margin-top: var(--sp-2); margin-inline: auto; }
