/* =========================================================
   PJ Odom site theme — layered ON TOP of Bootstrap 5.3
   Rules: do not restyle Bootstrap layout primitives
   (.container, .row, .col-*, .collapse, .navbar structure)
   ========================================================= */

:root,
[data-bs-theme="dark"] {
  --bg: #0b0b0f;
  --bg-elevated: #121218;
  --bg-card: #16161e;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;

  /* Align Bootstrap tokens with our theme */
  --bs-body-font-family: var(--font);
  --bs-body-color: #f4f4f5;
  --bs-body-bg: #0b0b0f;
  --bs-heading-color: #f4f4f5;
  --bs-secondary-color: #a1a1aa;
  --bs-tertiary-bg: #121218;
  --bs-border-color: rgba(255, 255, 255, 0.08);
  --bs-link-color: #c4b5fd;
  --bs-link-hover-color: #ddd6fe;
  --bs-primary: #8b5cf6;
  --bs-primary-rgb: 139, 92, 246;
  --bs-emphasis-color: #f4f4f5;
  --bs-body-color-rgb: 244, 244, 245;
  --bs-body-bg-rgb: 11, 11, 15;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Background atmosphere — decorative only */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(99, 102, 241, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(168, 85, 247, 0.06), transparent);
  pointer-events: none;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Headings stay light on dark */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

/* Content width helper — only for non-Bootstrap page sections.
   Do NOT target plain .container (that breaks the navbar). */
.page-width {
  width: min(1080px, 92%);
  margin-inline: auto;
}

/* ========== Header (Bootstrap example layout) ========== */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(11, 11, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
/* When header sits in a plain container, pin the outer strip */
body > .container:first-of-type {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(11, 11, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
body > .container:first-of-type > .site-header {
  max-width: 1080px;
  margin-inline: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header {
  border-bottom-color: var(--border) !important;
}
.site-header .logo img {
  height: 35px;
  width: auto;
  display: block;
}
.site-header .nav .nav-link,
.site-header .nav .nav-link.link-secondary,
.site-header ul.nav a.nav-link {
  color: #ffffff !important;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none !important;
  opacity: 1 !important;
  border-radius: 6px;
  background-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-header .nav .nav-link:hover,
.site-header .nav .nav-link:focus {
  color: #ffffff !important;
  background-color: rgba(139, 92, 246, 0.2);
}
.site-header .nav .nav-link.active,
.site-header .nav .nav-link.active:focus,
.site-header .nav .nav-link.active:hover {
  color: #ffffff !important;
  background-color: rgba(139, 92, 246, 0.4) !important;
  font-weight: 600;
}
.site-header .link-body-emphasis {
  color: #ffffff !important;
}

/* Kill blue link colors in the header */
.site-header a {
  color: #ffffff;
}
.site-header a:hover {
  color: #ffffff;
}


.nav-cta-btn,
.site-header .btn.btn-primary.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 1.15rem !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none !important;
}
.nav-cta-btn:hover,
.site-header .btn.btn-primary.nav-cta-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.4) !important;
}

@media (max-width: 767.98px) {
  .site-header {
    row-gap: 0.75rem;
  }
  .site-header .text-end {
    text-align: center !important;
    width: 100%;
  }
  .site-header .nav-cta-btn {
    width: 100%;
  }
  .site-header .nav {
    column-gap: 0.15rem;
  }
}

/* ========== Page sections (custom, not Bootstrap components) ========== */
.page-hero {
  padding: 8rem 0 3.5rem;
  text-align: center;
}
.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 1.15rem;
}
.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin: 0 0 1.15rem;
  line-height: 1.12;
}
.page-hero .lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

section {
  padding: 4rem 0;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 0.75rem;
}
.section-intro {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 1.75rem;
  font-size: 1.02rem;
}

/* Custom cards — named to avoid fighting Bootstrap .card defaults hard */
.card {
  background-color: rgba(22, 22, 30, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text);
  box-shadow: none;
}
.card h3,
.card h4 {
  color: var(--text);
}
.card p {
  color: var(--text-muted);
}
.card:hover {
  border-color: rgba(139, 92, 246, 0.28);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Content CTAs — scoped so they never style navbar-toggler or form buttons */
a.btn.btn-primary,
a.btn.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
a.btn.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.1);
}
a.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.4);
  color: #fff !important;
}
a.btn.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text) !important;
}
a.btn.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text) !important;
}

footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer .logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
footer .logo img {
  height: 28px;
  width: auto;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-auto {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .page-hero {
    padding: 6.5rem 0 2rem;
    text-align: left;
  }
  .page-hero .container {
    align-items: flex-start;
  }
  .page-hero h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  }
  .page-hero .lead {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    font-size: 1rem;
  }
  section {
    padding: 2.75rem 0;
  }
  .card {
    padding: 1.2rem;
  }
}
@media (max-width: 480px) {
  .page-hero {
    padding: 5.75rem 0 1.5rem;
  }
  section {
    padding: 2.25rem 0;
  }
  a.btn.btn-primary,
  a.btn.btn-ghost {
    width: 100%;
  }
}
