/* ──────────────────────────────────────────────────────────────
   SparkU Solutions — shared site styles (homepage + legal pages)
   Brand: Fault Fixer / SparkU. Landing-page (--wc-) variables.
   Only loaded on pages that <link> this file (home + legal),
   so global selectors here never touch the funnel pages.
   ────────────────────────────────────────────────────────────── */

:root {
  --wc-accent:       #F5C518;
  --wc-accent-dim:   #c49a10;
  --wc-accent-soft:  rgba(245, 197, 24, 0.08);
  --wc-accent-glow:  rgba(245, 197, 24, 0.15);
  --wc-steel:        #4A9EBB;
  --wc-steel-soft:   rgba(74, 158, 187, 0.10);
  --wc-heading:      'Barlow Condensed', sans-serif;
  --wc-body:         'DM Sans', sans-serif;

  /* Dark theme (default) */
  --wc-bg:           #0D0D0D;
  --wc-bg-2:         #111111;
  --wc-surface:      #131313;
  --wc-card:         #161616;
  --wc-card-hover:   #1C1C1C;
  --wc-fg:           #F0EDE8;
  --wc-muted:        rgba(239, 239, 239, 0.55);
  --wc-line:         rgba(255, 255, 255, 0.07);
  --wc-line-strong:  rgba(255, 255, 255, 0.12);
}

[data-theme="light"] {
  --wc-bg:           #F7F6F2;
  --wc-bg-2:         #FFFFFF;
  --wc-surface:      #FAFAF8;
  --wc-card:         #FFFFFF;
  --wc-card-hover:   #F2F1EC;
  --wc-fg:           #111111;
  --wc-muted:        rgba(17, 17, 17, 0.55);
  --wc-line:         rgba(0, 0, 0, 0.07);
  --wc-line-strong:  rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
  --wc-bg:           #0D0D0D;
  --wc-bg-2:         #111111;
  --wc-surface:      #131313;
  --wc-card:         #161616;
  --wc-card-hover:   #1C1C1C;
  --wc-fg:           #F0EDE8;
  --wc-muted:        rgba(239, 239, 239, 0.55);
  --wc-line:         rgba(255, 255, 255, 0.07);
  --wc-line-strong:  rgba(255, 255, 255, 0.12);
}

/* ── base ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wc-bg);
  color: var(--wc-fg);
  font-family: var(--wc-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; background: var(--wc-bg); color: var(--wc-fg); }
@media (max-width: 768px) { .section { padding: 56px 0; } }

/* ── type ── */
.eyebrow {
  font-family: var(--wc-heading);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--wc-accent);
  margin: 0 0 14px;
}
.h1 {
  font-family: var(--wc-heading);
  text-transform: uppercase; letter-spacing: 0.02em;
  font-weight: 900; line-height: 1.04;
  font-size: clamp(34px, 6vw, 62px);
  margin: 0 0 18px;
}
.h2 {
  font-family: var(--wc-heading);
  text-transform: uppercase; letter-spacing: 0.03em;
  font-weight: 900; line-height: 1.06;
  font-size: clamp(28px, 4.5vw, 44px);
  margin: 0 0 16px;
}
.h3 {
  font-family: var(--wc-heading);
  text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 800; line-height: 1.1;
  font-size: 22px; margin: 0 0 10px;
}
.lead { font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: var(--wc-muted); margin: 0; }
.accent { color: var(--wc-accent); }
.prose p { font-size: 16px; line-height: 1.7; color: var(--wc-muted); margin: 0 0 16px; }
.prose h2 { font-size: 20px; margin: 32px 0 12px; }
.prose h3 { font-size: 16px; margin: 24px 0 8px; }
.prose strong { color: var(--wc-fg); }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { font-size: 16px; line-height: 1.7; color: var(--wc-muted); margin-bottom: 8px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 8px;
  font-family: var(--wc-heading); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--wc-accent); color: #000; }
.btn-primary:hover { background: #ffd633; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--wc-fg); border-color: var(--wc-line-strong); }
.btn-ghost:hover { border-color: var(--wc-accent); color: var(--wc-accent); }

/* ── cards ── */
.card {
  position: relative; border-radius: 14px;
  border: 1px solid var(--wc-line); background: var(--wc-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--wc-accent); opacity: 0; transition: opacity .2s ease;
}
.card:hover { border-color: var(--wc-line-strong); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card-media { aspect-ratio: 16 / 10; background: #0a0a0a; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body .btn { margin-top: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* two-column splits that collapse to one column on tablet/mobile */
.split { display: grid; gap: 44px; align-items: center; }
.split-hero { grid-template-columns: 1.1fr 0.9fr; }
.split-even { grid-template-columns: 1fr 1fr; }
.split-founder { grid-template-columns: 0.8fr 1.2fr; }
@media (max-width: 920px) {
  .split { gap: 32px; }
  .split-hero, .split-even, .split-founder { grid-template-columns: 1fr; }
}

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header img { height: 30px; width: auto; }

/* ── footer ── */
.site-footer { background: #0A0A0A; color: var(--wc-fg); border-top: 1px solid rgba(255,255,255,0.07); padding: 56px 0 40px; }
.site-footer a { color: var(--wc-muted); text-decoration: none; }
.site-footer a:hover { color: var(--wc-accent); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ── logo marquee ── */
.marquee { 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; width: max-content; align-items: center; gap: 56px; animation: marquee 34s linear infinite; }
.marquee-track img { height: 38px; width: auto; opacity: 0.7; filter: grayscale(100%); transition: opacity .2s, filter .2s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img:hover { opacity: 1; filter: grayscale(0%); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }
