/* ============================================================
   CARLI GEIST, PARALEGAL — Design System v2
   Palette: Dark (#110B30 bg) · Grape (#8B4CF7 accent) · Gold (#FBBF24 CTA)
   ============================================================ */

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* Subtle dot-grid background texture on body */
body {
  background-image: radial-gradient(circle, rgba(139,76,247,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Stagger reveal animations ───────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stagger-fade > * {
  opacity: 0;
  animation: fadeSlideUp 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stagger-fade > *:nth-child(1) { animation-delay: 0.06s; }
.stagger-fade > *:nth-child(2) { animation-delay: 0.13s; }
.stagger-fade > *:nth-child(3) { animation-delay: 0.20s; }
.stagger-fade > *:nth-child(4) { animation-delay: 0.27s; }
.stagger-fade > *:nth-child(5) { animation-delay: 0.34s; }
.stagger-fade > *:nth-child(6) { animation-delay: 0.41s; }
.stagger-fade > *:nth-child(7) { animation-delay: 0.48s; }
.stagger-fade > *:nth-child(8) { animation-delay: 0.55s; }

/* ── Typography helpers ──────────────────────────────────── */
.section-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #A97AFA;
  margin-bottom: 0.5rem;
}

.section-title-light {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #F5F0FF;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #111827;
}

/* Gradient text — use on hero keywords */
.gradient-text {
  background: linear-gradient(135deg, #C9A8FF 0%, #8B4CF7 60%, #6620C8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8B4CF7, #6620C8);
  color: #fff;
  font-weight: 700;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(107, 32, 200, 0.4);
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107, 32, 200, 0.5);
}
.btn-primary:active { transform: translateY(1px) scale(0.98); box-shadow: 0 2px 8px rgba(107,32,200,0.3); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #8B4CF7;
  color: #C9A8FF;
  font-weight: 700;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  background-color: transparent;
}
.btn-outline:hover {
  background-color: rgba(139, 76, 247, 0.12);
  color: #fff;
}

/* Gold CTA — on grape banner sections */
.btn-cta-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FBBF24;
  color: #1A0636;
  font-weight: 800;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 14px rgba(251,191,36,0.35);
}
.btn-cta-light:hover {
  background-color: #F59E0B;
  transform: translateY(-1px);
}

/* ── Navigation ──────────────────────────────────────────── */
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #b8a9d9;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: linear-gradient(90deg, #8B4CF7, #C9A8FF);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: left;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link-active {
  color: #C9A8FF !important;
  font-weight: 600;
}
.nav-link-active::after { transform: scaleX(1) !important; }

/* ── Footer links ────────────────────────────────────────── */
.footer-link {
  font-size: 0.875rem;
  color: #7c6f9a;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-link:hover { color: #C9A8FF; }

/* ── Forms ───────────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}

.form-input {
  display: block;
  width: 100%;
  border-radius: 0.625rem;
  border: 1px solid rgba(139, 76, 247, 0.25);
  background-color: rgba(25, 15, 64, 0.6);
  padding: 0.6875rem 1rem;
  font-size: 0.875rem;
  color: #e9d5ff;
  backdrop-filter: blur(4px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus {
  outline: none;
  border-color: #8B4CF7;
  box-shadow: 0 0 0 3px rgba(139, 76, 247, 0.2);
}
.form-input::placeholder { color: #5a4d73; }

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238B4CF7'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1rem;
  padding-right: 2.75rem;
}
select.form-input option {
  background-color: #190F40;
  color: #e9d5ff;
}

/* ── Cards ───────────────────────────────────────────────── */

/* Service cards — home grid */
.service-card {
  display: block;
  background: linear-gradient(160deg, rgba(42,24,84,0.9) 0%, rgba(25,15,64,0.9) 100%);
  border: 1px solid rgba(139, 76, 247, 0.15);
  border-top: 3px solid transparent;
  border-radius: 1rem;
  padding: 1.75rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4CF7, #C9A8FF);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.service-card:hover {
  border-color: rgba(139, 76, 247, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(107, 32, 200, 0.25);
}
.service-card:hover::before { opacity: 1; }

.service-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(139,76,247,0.25), rgba(102,32,200,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A97AFA;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(139,76,247,0.2);
}

/* Stat cards — "Why fight" section */
.stat-card {
  background: rgba(25,15,64,0.6);
  border: 1px solid rgba(139, 76, 247, 0.12);
  border-radius: 1rem;
  padding: 1.75rem;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s ease;
}
.stat-card:hover { border-color: rgba(139,76,247,0.3); }

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(139,76,247,0.2), rgba(102,32,200,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A97AFA;
  margin-bottom: 1rem;
  border: 1px solid rgba(139,76,247,0.2);
}
.stat-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #F5F0FF;
  margin-bottom: 0.5rem;
}
.stat-body {
  font-size: 0.875rem;
  color: #8a7da8;
  line-height: 1.65;
}

/* About stat cards */
.about-stat-card {
  background: rgba(25,15,64,0.6);
  border: 1px solid rgba(139, 76, 247, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

/* Blog cards */
.blog-card {
  display: block;
  background: rgba(25,15,64,0.6);
  border: 1px solid rgba(139, 76, 247, 0.12);
  border-radius: 1rem;
  padding: 1.75rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  border-color: rgba(139,76,247,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107,32,200,0.2);
}

/* ── Divider ─────────────────────────────────────────────── */
.section-divider {
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, #8B4CF7, #C9A8FF);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ── Quill / Rich Text ───────────────────────────────────── */
.quill-content { line-height: 1.8; font-size: 1rem; }
.quill-content h1 { font-size: 1.875rem; font-weight: 700; margin: 1.75rem 0 0.75rem; color: #F5F0FF; }
.quill-content h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: #F5F0FF; }
.quill-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #E3D0FF; }
.quill-content p  { margin-bottom: 1rem; color: #c4b5fd; }
.quill-content ul, .quill-content ol { margin: 0 0 1rem 1.5rem; color: #c4b5fd; }
.quill-content ul { list-style-type: disc; }
.quill-content ol { list-style-type: decimal; }
.quill-content li { margin-bottom: 0.375rem; }
.quill-content a { color: #A97AFA; text-decoration: underline; }
.quill-content a:hover { color: #C9A8FF; }
.quill-content blockquote {
  border-left: 3px solid #8B4CF7;
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: #8a7da8;
  font-style: italic;
}
.quill-content strong { font-weight: 700; color: #e9d5ff; }
.quill-content em { font-style: italic; }
.quill-content code {
  background: rgba(139,76,247,0.1);
  border-radius: 0.25rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
  color: #C9A8FF;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-grape { background: rgba(139,76,247,0.15); color: #C9A8FF; border: 1px solid rgba(139,76,247,0.25); }
.badge-gold  { background: rgba(251,191,36,0.12); color: #FBBF24; border: 1px solid rgba(251,191,36,0.2); }
.badge-green { background: rgba(34,197,94,0.12);  color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.badge-red   { background: rgba(239,68,68,0.12);  color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

/* ── Prose Dark (legal pages) ────────────────────────────── */
.prose-dark p, .prose-dark li { color: #9d8fc0; line-height: 1.8; }
.prose-dark a { color: #A97AFA; text-decoration: underline; }
.prose-dark a:hover { color: #C9A8FF; }

/* ── Credential cards (About page) ──────────────────────── */
.credential-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  background: rgba(25,15,64,0.6);
  border: 1px solid rgba(139, 76, 247, 0.15);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s ease;
  backdrop-filter: blur(4px);
}
.credential-card:hover { border-color: rgba(139,76,247,0.3); }
.credential-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(139,76,247,0.25), rgba(102,32,200,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A97AFA;
  flex-shrink: 0;
  border: 1px solid rgba(139,76,247,0.2);
}

/* ── Contact info cards ──────────────────────────────────── */
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(25,15,64,0.6);
  border: 1px solid rgba(139, 76, 247, 0.15);
  border-radius: 0.875rem;
  padding: 1.125rem 1.25rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  backdrop-filter: blur(4px);
}
.contact-info-card:hover {
  border-color: rgba(139,76,247,0.4);
  background: rgba(42,24,84,0.7);
}
.contact-info-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, rgba(139,76,247,0.25), rgba(102,32,200,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A97AFA;
  flex-shrink: 0;
  border: 1px solid rgba(139,76,247,0.2);
}

/* ── Page hero ───────────────────────────────────────────── */
.page-hero-line {
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, #8B4CF7, transparent);
  border-radius: 2px;
  margin-top: 0.75rem;
}

/* ── Process step ────────────────────────────────────────── */
.process-step-num {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B4CF7, #6620C8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 14px rgba(107,32,200,0.45);
}

/* ── Newsletter feature items ────────────────────────────── */
.newsletter-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.newsletter-feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, rgba(139,76,247,0.2), rgba(102,32,200,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A97AFA;
  flex-shrink: 0;
  border: 1px solid rgba(139,76,247,0.2);
  margin-top: 0.125rem;
}

/* ── Glass panel (sidebar boxes) — Liquid Glass ──────────── */
.glass-panel {
  background: linear-gradient(160deg, rgba(56,15,112,0.5) 0%, rgba(25,15,64,0.7) 100%);
  border: 1px solid rgba(139, 76, 247, 0.25);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* ── Penalty list item ───────────────────────────────────── */
.penalty-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(139, 76, 247, 0.08);
}
.penalty-item:last-child { border-bottom: none; }

/* ── Scrollbar (webkit) ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0A0620; }
::-webkit-scrollbar-thumb { background: #4F1899; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #6620C8; }
