/* =========================================================
   SERVICES PAGE (Light Theme) — Scoped, Safe, No Global Override
   ========================================================= */

/* Scope to Services page only */
body[data-page="services"] #services {
  --svw-bg: #ffffff;
  --svw-text: #0f172a;          /* slate-900 */
  --svw-muted: #475569;         /* slate-600 */
  --svw-strong: #0f172a;        /* stronger text */
  --svw-link: #0284c7;          /* sky-600 */
  --svw-border: #e5e7eb;        /* gray-200 */
  --svw-shadow: 0 10px 20px rgba(2, 6, 23, 0.08);
  --svw-radius: 18px;

  --svw-brand: #06b6d4;         /* cyan-500 */
  --svw-brand-2: #10b981;       /* emerald-500 */
  --svw-accent: #f59e0b;        /* amber-500 */
}

/* Breadcrumb (outside #services but still page-specific) */
body[data-page="services"] .breadcrumb {
  margin: 6px 0 14px;
  font-size: 14px;
  color: #64748b;
}
body[data-page="services"] .breadcrumb ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; gap: 10px; flex-wrap: wrap;
}
body[data-page="services"] .breadcrumb li+li::before {
  content: "›";
  opacity: .65;
  margin-right: 10px;
}

/* =========================================================
   MAIN SERVICE CARDS
   ========================================================= */
body[data-page="services"] #services .card {
  background: var(--svw-bg);
  border: 1px solid var(--svw-border);
  border-radius: var(--svw-radius);
  padding: 22px;
  box-shadow: var(--svw-shadow);
  color: var(--svw-text);
  margin-bottom: 26px; /* ⬅ NEW spacing between cards */
}

/* Remove margin from last card */
body[data-page="services"] #services .card:last-of-type {
  margin-bottom: 0;
}

body[data-page="services"] #services .card h1,
body[data-page="services"] #services .card h2 {
  margin: 0 0 10px;
  line-height: 1.25;
  color: var(--svw-strong);
}
body[data-page="services"] #services .card h1 { font-size: 32px; font-weight: 800; }
body[data-page="services"] #services .card h2 { font-size: 22px; font-weight: 700; }
body[data-page="services"] #services .card .lead {
  font-size: 18px;
  color: #1f2937;
}

/* =========================================================
   GRADIENT / HERO CARDS
   ========================================================= */
body[data-page="services"] #services .card--grad {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16,185,129,.06), rgba(14,165,233,.06));
}
body[data-page="services"] #services .card--grad::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 300px at 10% -10%, rgba(14,165,233,.12), transparent 65%),
    radial-gradient(500px 260px at 90% 0%, rgba(16,185,129,.12), transparent 65%);
  z-index: 0;
}
/* FIX: Bring content above gradient overlay */
body[data-page="services"] #services .card--grad > * {
  position: relative;
  z-index: 1;
}

body[data-page="services"] #services .card--wealth { border-color: #c4f3df; }
body[data-page="services"] #services .card--cta { border-color: #fde68a; }
body[data-page="services"] #services .card--accent {
  background: #f8fafc;
  border-color: #dbeafe;
}

/* =========================================================
   CHECKLIST BULLETS
   ========================================================= */
body[data-page="services"] #services .checklist {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
}
body[data-page="services"] #services .checklist li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
  color: #0f172a;
}
body[data-page="services"] #services .checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--svw-brand), var(--svw-brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}

/* =========================================================
   BUTTONS (Fixed visibility)
   ========================================================= */
body[data-page="services"] #services .btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px; padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  z-index: 2;
  cursor: pointer;
  border: 1px solid var(--svw-border);
  box-shadow: var(--svw-shadow);
  transition: 0.15s ease-in-out;
}

body[data-page="services"] #services .btn--primary {
  background: linear-gradient(135deg, var(--svw-brand), var(--svw-brand-2));
  color: #ffffff !important;
  border-color: transparent;
}
body[data-page="services"] #services .btn--primary:hover {
  filter: brightness(1.1);
}

body[data-page="services"] #services .btn--ghost {
  background: #ffffff;
  color: #111827 !important;
}
body[data-page="services"] #services .btn--ghost:hover {
  background: #f1f5f9;
}

body[data-page="services"] #services .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* =========================================================
   DISCLAIMER + FAQ
   ========================================================= */
body[data-page="services"] #services .note {
  background: #f8fafc;
  border: 1px dashed var(--svw-border);
  border-radius: var(--svw-radius);
  padding: 14px;
  color: #1f2937;
}

body[data-page="services"] #services .faq details {
  border-top: 1px dashed var(--svw-border);
  padding: 12px 0;
}
body[data-page="services"] #services .faq details:first-child {
  border-top: none;
}
body[data-page="services"] #services .faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
}
body[data-page="services"] #services .faq p {
  margin: 8px 0 0;
  color: #1f2937;
}

/* =========================================================
   GRID SPACING (main vs sidebar)
   ========================================================= */
@media (min-width: 980px) {
  body[data-page="services"] .home-grid {
    gap: 32px; /* added horizontal breathing room */
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 480px) {
  body[data-page="services"] #services .card { padding: 18px; }
  body[data-page="services"] #services .card h1 { font-size: 26px; }
  body[data-page="services"] #services .card h2 { font-size: 19px; }
  body[data-page="services"] #services .btn { width: 100%; justify-content: center; }
}
