/* ==========================================================================
   Prime Assist — Service Blog Pages (one page per service/reel)
   Shared stylesheet for /blog/*.html — mirrors the main site theme
   ========================================================================== */

:root {
  /* ===== LIGHT THEME (DEFAULT) ===== */
  --bg: #f7f7f8;
  --text: #0e0e0e;
  --text-soft: #3d3d3d;
  --muted: #565656;
  --text-faint: #6d6d6d;
  --pill-dark: #28282a;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.10);
  --card-border-hover: rgba(0, 0, 0, 0.26);
  --border-1: rgba(0, 0, 0, 0.09);
  --border-2: rgba(0, 0, 0, 0.16);
  --border-3: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.30);
  --surface-1: #eeeff2;
  --surface-2: #f0f0f4;
  --surface-3: #eaebef;
  --surface-4: #f4f4f6;
  --surface-3-strong: #e2e2e6;
  --surface-hover: #f6f6f8;
  --accent-red: #CC0000;
  --accent-bright: #CC0000;
  --inverse-bg: #0e0e0e;
  --inverse-text: #ffffff;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", monospace;
}

[data-theme="dark"] {
  /* ===== DARK THEME (OPT-IN) ===== */
  --bg: #000000;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.88);
  --muted: #8e8e8e;
  --text-faint: #4d4d4d;
  --card-bg: #0d0d0d;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.28);
  --border-1: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.16);
  --border-3: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.35);
  --surface-1: #0d0d0d;
  --surface-2: #161618;
  --surface-3: #1a1a1c;
  --surface-4: #111113;
  --surface-3-strong: #28282a;
  --surface-hover: #121214;
  --accent-bright: #ff3333;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* --- Top bar --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--border-1);
}

.topbar .logo-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--pill-dark);
  display: grid;
  place-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.topbar .logo-btn img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
}

.topbar .back-link {
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.topbar .back-link:hover {
  color: var(--text);
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 40px) clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--border-1);
}

.hero .kicker {
  color: var(--accent-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.hero .red-line {
  width: 64px;
  height: 4px;
  background: var(--accent-red);
  border-radius: 2px;
  margin: 0 auto 22px;
}

.hero .tagline {
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 20px);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Content sections --- */
.section {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 40px);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 400;
  margin-bottom: 14px;
}

.section h2 .red-dot {
  color: var(--accent-red);
}

.section .lead {
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 17px);
  margin-bottom: 28px;
}

.section p {
  color: var(--text-soft);
  font-size: clamp(15px, 2.2vw, 17px);
  margin-bottom: 16px;
}

/* --- Card grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-3px);
}

.card .icon {
  color: var(--accent-red);
  font-size: 22px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 0;
}

/* --- CTA band --- */
.cta {
  text-align: center;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 40px);
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 400;
  margin-bottom: 14px;
}

.cta p {
  color: var(--muted);
  margin-bottom: 30px;
}

.cta .btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-red {
  background: var(--accent-red);
  color: #ffffff;
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204, 0, 0, 0.35);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.cta .contact-line {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.cta .contact-line a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 28px clamp(20px, 5vw, 40px);
}

.footer .tagline {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.footer .copy {
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 6px;
}
