/* =========================================================
   SpurAd theme stylesheet
   Color tokens are also written as CSS variables on :root by
   inc/customizer.php (inline, in wp_head) from Customizer values.
   The hex values below are the shipped defaults.
   ========================================================= */

:root {
  --sp-bg: #05070C;
  --sp-bg-alt: #0A0F1D;
  --sp-surface: rgba(30, 41, 59, 0.45);
  --sp-surface-solid: #1E293B;
  --sp-border: rgba(148, 163, 184, 0.14);
  --sp-text: #F8FAFC;
  --sp-text-muted: #94A3B8;
  --sp-text-dim: #64748B;
  --sp-accent-brand: #22D3EE;
  --sp-accent-agency: #8B5CF6;
  --sp-radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.spurad {
  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

.spurad img { max-width: 100%; height: auto; }

.spurad h1, .spurad h2, .spurad h3 {
  font-family: 'Sora', system-ui, sans-serif;
  margin: 0;
}

.spurad a { text-decoration: none; color: inherit; }

.spurad button { font-family: 'IBM Plex Sans', system-ui, sans-serif; cursor: pointer; }

.spurad input, .spurad select, .spurad textarea {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
}

.spurad ::selection { background: var(--sp-accent-brand); color: var(--sp-bg); }

.sp-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.sp-num {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.sp-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.sp-wrap-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* ---------- Header ---------- */

.sp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 12, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sp-border);
}

.sp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.sp-logo { display: flex; align-items: center; gap: 9px; }

.sp-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sp-accent-brand), var(--sp-accent-agency));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--sp-text);
}

.sp-nav-links { display: flex; align-items: center; gap: 30px; }

.sp-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--sp-text-muted);
  transition: color 0.15s ease;
}

.sp-nav-links a:hover { color: var(--sp-text); }

.sp-nav-cta-row { display: flex; align-items: center; gap: 10px; }

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.sp-btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 7px; }
.sp-btn-lg { padding: 15px 26px; font-size: 15.5px; border-radius: 9px; }
.sp-btn-block { width: 100%; padding: 14px; font-size: 15px; border-radius: 9px; }

.sp-btn-cyan { background: var(--sp-accent-brand); border-color: var(--sp-accent-brand); color: var(--sp-bg); }
.sp-btn-cyan:hover { filter: brightness(1.15); }

.sp-btn-violet { background: var(--sp-accent-agency); border-color: var(--sp-accent-agency); color: #F8FAFC; }
.sp-btn-violet:hover { filter: brightness(1.15); }

.sp-btn-ghost { background: transparent; border-color: rgba(148, 163, 184, 0.3); color: var(--sp-text); }
.sp-btn-ghost:hover { border-color: rgba(248, 250, 252, 0.6); }

.sp-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  color: var(--sp-text);
}

.sp-mobile-panel {
  display: none;
  border-top: 1px solid var(--sp-border);
  padding: 18px 20px 24px;
  flex-direction: column;
  gap: 16px;
  background: var(--sp-bg);
}

.sp-mobile-panel.is-open { display: flex; }

.sp-mobile-panel a { font-size: 15px; font-weight: 500; color: var(--sp-text-muted); }

.sp-mobile-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.sp-mobile-ctas .sp-btn { text-align: center; }

/* ---------- Hero ---------- */

.sp-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 40px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.sp-pill {
  color: var(--sp-accent-brand);
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.28);
  padding: 6px 14px;
  border-radius: 100px;
}

.sp-hero h1 {
  font-size: 58px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 880px;
  text-wrap: balance;
}

.sp-hero h1 .sp-accent { color: var(--sp-accent-brand); }

.sp-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--sp-text-muted);
  max-width: 640px;
  margin: 0;
}

.sp-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.sp-hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 28px;
  opacity: 0.75;
}

.sp-hero-trust span { font-size: 11px; color: var(--sp-text-dim); }

/* ---------- Section shell ---------- */

.sp-section { padding-top: 64px; padding-bottom: 64px; }
.sp-section-tight { padding-top: 64px; padding-bottom: 64px; }

.sp-section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
  max-width: 680px;
}

.sp-section-head h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.015em; }
.sp-section-head p { color: var(--sp-text-muted); font-size: 15.5px; line-height: 1.6; margin: 0; }

/* ---------- Services grid ---------- */

.sp-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.sp-card {
  background: var(--sp-surface);
  backdrop-filter: blur(6px);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.sp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2), 0 18px 40px -18px rgba(34, 211, 238, 0.35);
}

.sp-card-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-accent-brand);
  font-size: 12.5px;
  font-weight: 600;
}

.sp-card h3 { font-size: 16px; font-weight: 600; }
.sp-card p { color: var(--sp-text-muted); font-size: 13.5px; line-height: 1.55; margin: 0; }

/* ---------- Split (brands vs agencies) ---------- */

.sp-split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.sp-split-card {
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sp-split-brand { background: rgba(34, 211, 238, 0.05); border: 1px solid rgba(34, 211, 238, 0.24); }
.sp-split-agency { background: rgba(139, 92, 246, 0.05); border: 1px solid rgba(139, 92, 246, 0.24); }

.sp-split-card h3 { font-size: 24px; font-weight: 700; }
.sp-split-card > p { color: var(--sp-text-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

.sp-bullets { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.sp-bullet { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #E2E8F0; }
.sp-bullet .sp-check { margin-top: 2px; }
.sp-split-brand .sp-check { color: var(--sp-accent-brand); }
.sp-split-agency .sp-check { color: var(--sp-accent-agency); }

.sp-split-card .sp-btn { margin-top: 8px; text-align: center; }

/* ---------- AI advantage ---------- */

.sp-ai-section {
  max-width: 1240px;
  margin: 0 auto 64px;
  padding: 64px 40px;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 24px;
}

.sp-ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.sp-ai-card {
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-ai-card .sp-num { font-size: 13px; color: var(--sp-accent-brand); }
.sp-ai-card h3 { font-size: 18px; font-weight: 600; }
.sp-ai-card p { color: var(--sp-text-muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Metrics ---------- */

.sp-metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 56px; }

.sp-metric { display: flex; flex-direction: column; gap: 6px; border-left: 2px solid rgba(34, 211, 238, 0.4); padding-left: 18px; }
.sp-metric .sp-num { font-size: 38px; font-weight: 600; color: var(--sp-text); }
.sp-metric span:last-child { font-size: 13.5px; color: var(--sp-text-muted); }

/* ---------- Testimonials ---------- */

.sp-testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.sp-testimonial {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.sp-testimonial p { font-size: 14.5px; line-height: 1.65; color: #E2E8F0; margin: 0; }
.sp-testimonial .sp-name { font-size: 13.5px; font-weight: 600; color: var(--sp-text); display: block; }
.sp-testimonial .sp-role { font-size: 12.5px; color: var(--sp-text-dim); display: block; }

/* ---------- Contact ---------- */

.sp-contact-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  padding: 40px;
}

.sp-contact-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.sp-contact-head h2 { font-size: 30px; font-weight: 700; }
.sp-contact-head p { color: var(--sp-text-muted); font-size: 14.5px; margin: 0; }

.sp-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  background: var(--sp-bg-alt);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 4px;
}

.sp-toggle button {
  flex: 1;
  padding: 11px;
  border-radius: 7px;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  background: transparent;
  color: var(--sp-text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.sp-toggle button.is-active-brand { background: var(--sp-accent-brand); color: var(--sp-bg); }
.sp-toggle button.is-active-agency { background: var(--sp-accent-agency); color: var(--sp-text); }

.sp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }

.sp-field { display: flex; flex-direction: column; gap: 6px; }
.sp-field label { font-size: 12.5px; color: var(--sp-text-muted); }
.sp-field input, .sp-field textarea, .sp-field select {
  background: var(--sp-bg-alt);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: var(--sp-text);
  padding: 11px 13px;
  font-size: 14px;
  outline: none;
  width: 100%;
}
.sp-field input:focus, .sp-field textarea:focus, .sp-field select:focus { border-color: var(--sp-accent-brand); }

.sp-field-full { grid-column: 1 / -1; }

.sp-notice {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}
.sp-notice-success { background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.35); color: var(--sp-text); }
.sp-notice-error { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); color: var(--sp-text); }

/* ---------- Footer ---------- */

.sp-footer { border-top: 1px solid var(--sp-border); padding: 56px 40px 32px; }

.sp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }

.sp-footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 260px; }
.sp-footer-brand p { color: var(--sp-text-dim); font-size: 13px; line-height: 1.6; margin: 0; }

.sp-social-row { display: flex; gap: 12px; margin-top: 4px; }
.sp-social-row a {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.sp-social-row a:hover { color: var(--sp-text); border-color: rgba(248, 250, 252, 0.4); }

.sp-footer-col { display: flex; flex-direction: column; gap: 12px; }
.sp-footer-col span.sp-eyebrow { color: var(--sp-text-dim); font-size: 11px; }
.sp-footer-col a { font-size: 13.5px; color: var(--sp-text-muted); transition: color 0.15s ease; }
.sp-footer-col a:hover { color: var(--sp-text); }

.sp-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.sp-footer-bottom span { font-size: 12.5px; color: var(--sp-text-dim); }
.sp-footer-bottom-links { display: flex; gap: 20px; }
.sp-footer-bottom-links a { font-size: 12.5px; color: var(--sp-text-muted); }
.sp-footer-bottom-links a:hover { color: var(--sp-text); }

/* ---------- Generic page/single fallback content ---------- */

.sp-content-page { max-width: 800px; margin: 0 auto; padding: 80px 40px 96px; }
.sp-content-page h1 { font-size: 40px; margin-bottom: 24px; }
.sp-content-page .sp-entry-content { font-size: 16px; line-height: 1.75; color: #E2E8F0; }
.sp-content-page .sp-entry-content p { margin: 0 0 18px; }
.sp-content-page .sp-entry-content a { color: var(--sp-accent-brand); text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .sp-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-ai-grid { grid-template-columns: 1fr; }
  .sp-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-testimonial-grid { grid-template-columns: 1fr; }
  .sp-split-grid { grid-template-columns: 1fr; }
  .sp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .sp-nav-links { display: none; }
  .sp-nav-cta-row { display: none; }
  .sp-burger { display: flex; }
  .sp-hero h1 { font-size: 40px; }
  .sp-wrap, .sp-wrap-narrow { padding-left: 20px; padding-right: 20px; }
  .sp-form-grid { grid-template-columns: 1fr; }
  .sp-ai-section { padding-left: 20px; padding-right: 20px; border-radius: 0; }
  .sp-contact-card { padding: 24px; }
}

@media (max-width: 560px) {
  .sp-services-grid { grid-template-columns: 1fr; }
  .sp-metrics-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .spurad * { transition: none !important; animation: none !important; }
}
