/* ============================================================
   BrightWire Ghost Theme — style.css
   Design System: Manrope font, purple/gold palette
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

/* ---- Design Tokens ---- */
:root {
  --c-primary: #331956;
  --c-primary-container: #4a306d;
  --c-secondary: #7c5800;
  --c-secondary-container: #fdc65c;
  --c-tertiary: #0d2d20;
  --c-tertiary-container: #244335;
  --c-surface: #fef7fe;
  --c-surface-low: #f8f2f8;
  --c-surface-mid: #f0e8f0;

  /* Opacity variants */
  --c-primary-70: rgba(51,25,86,0.7);
  --c-primary-60: rgba(51,25,86,0.6);
  --c-primary-50: rgba(51,25,86,0.5);
  --c-primary-40: rgba(51,25,86,0.4);
  --c-primary-30: rgba(51,25,86,0.3);
  --c-primary-10: rgba(51,25,86,0.1);
  --c-primary-5:  rgba(51,25,86,0.05);

  --c-white-80: rgba(255,255,255,0.8);
  --c-white-70: rgba(255,255,255,0.7);
  --c-white-50: rgba(255,255,255,0.5);
  --c-white-40: rgba(255,255,255,0.4);
  --c-white-20: rgba(255,255,255,0.2);
  --c-white-10: rgba(255,255,255,0.1);

  --c-tertiary-20:   rgba(36,67,53,0.2);
  --c-tertiary-30:   rgba(36,67,53,0.3);
  --c-secondary-c-30: rgba(253,198,92,0.3);
  --c-primary-c-20:  rgba(74,48,109,0.2);
  --c-tertiary-c-10: rgba(36,67,53,0.1);
  --c-surface-80:    rgba(254,247,254,0.8);
  --c-surface-90:    rgba(254,247,254,0.9);

  --shadow-soft: 0 4px 24px rgba(74,48,109,0.06);
  --shadow-md:   0 8px 32px rgba(74,48,109,0.08);
  --shadow-lg:   0 16px 48px rgba(74,48,109,0.10);

  --radius:      1rem;
  --radius-lg:   2rem;
  --radius-xl:   3rem;
  --radius-full: 9999px;

  --max-w-7xl: 80rem;    /* 1280px */
  --max-w-5xl: 64rem;    /* 1024px */
  --max-w-4xl: 56rem;    /* 896px */
  --max-w-3xl: 48rem;    /* 768px */
  --max-w-2xl: 42rem;    /* 672px */
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background-color: var(--c-surface);
  color: var(--c-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
textarea { resize: none; }

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

/* ---- Layout Utilities ---- */
.container {
  max-width: var(--max-w-7xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.container-4xl { max-width: var(--max-w-4xl); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px)  { .container-4xl { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-4xl { padding-left: 2rem;   padding-right: 2rem;   } }

.container-5xl { max-width: var(--max-w-5xl); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px)  { .container-5xl { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-5xl { padding-left: 2rem;   padding-right: 2rem;   } }

/* ---- Section Spacing ---- */
.section-py { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 640px) { .section-py { padding-top: 6rem; padding-bottom: 6rem; } }

.section-pt-hero { padding-top: 7rem; padding-bottom: 4rem; }
@media (min-width: 640px) { .section-pt-hero { padding-top: 9rem; padding-bottom: 5rem; } }

.section-pt-hero-tall { padding-top: 7rem; padding-bottom: 4rem; }
@media (min-width: 640px) { .section-pt-hero-tall { padding-top: 9rem; padding-bottom: 6rem; } }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--c-surface-80);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  max-width: var(--max-w-7xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px)  { .nav-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .nav-inner { padding-left: 2rem;   padding-right: 2rem;   } }

/* Nav bar - standard height for inner pages, tall for home */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 640px) { .nav-bar { height: 5rem; } }

/* nav-bar--tall removed - now handled via body.page-home .nav-bar */

/* Standard logo: 2rem / 2.5rem for inner pages */
.nav-logo img { height: 2rem; width: auto; }
@media (min-width: 640px) { .nav-logo img { height: 2.5rem; } }

/* Home page: tall nav bar + large logo */
body.page-home .nav-bar { height: 6rem; }
@media (min-width: 640px) { body.page-home .nav-bar { height: 7rem; } }
body.page-home .nav-logo img { height: 80px !important; width: auto !important; }

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-primary-70);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover {
  color: var(--c-primary);
  border-bottom-color: rgba(124,88,0,0.4);
}
.nav-link.active {
  font-weight: 700;
  color: var(--c-primary);
  border-bottom-color: var(--c-secondary);
}

.nav-cta {
  margin-left: 1rem;
  padding: 0.625rem 1.5rem;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: background 0.2s;
  box-shadow: var(--shadow-soft);
}
.nav-cta:hover { background: var(--c-primary-container); }

.nav-mobile-btn {
  display: flex;
  padding: 0.5rem;
  color: var(--c-primary);
}
@media (min-width: 768px) { .nav-mobile-btn { display: none; } }

.nav-mobile {
  display: none;
  padding-bottom: 1rem;
}
.nav-mobile.open { display: block; }
@media (min-width: 768px) { .nav-mobile { display: none !important; } }

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--c-surface-low);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.nav-mobile-link {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-primary-70);
  border-radius: var(--radius);
  transition: background 0.2s;
}
.nav-mobile-link:hover { background: var(--c-surface); }
.nav-mobile-link.active {
  font-weight: 700;
  color: var(--c-primary);
  background: var(--c-surface);
}

.nav-mobile-cta {
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

/* ---- Footer ---- */
.footer {
  background: var(--c-primary);
  padding: 3rem 0;
}
@media (min-width: 640px) { .footer { padding: 4rem 0; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-logo img {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  color: var(--c-white-50);
  margin-top: 0.75rem;
  max-width: 28rem;
  line-height: 1.625;
  font-size: 0.875rem;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-white-80);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--c-white-50);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-link:hover { color: #fff; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-white-10);
  text-align: center;
}

.footer-copy {
  color: var(--c-white-40);
  font-size: 0.875rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 1rem 2rem;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--c-primary-container); }

.btn-gold {
  background: var(--c-secondary-container);
  color: var(--c-primary);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.btn-gold:hover { background: #fbbf24; }

.btn-surface {
  background: var(--c-surface-low);
  color: var(--c-primary);
}
.btn-surface:hover { background: var(--c-surface-mid); }

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

.btn-sm {
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
}

/* ---- Cards ---- */
.card {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }

.card-pad { padding: 1.5rem; }
.card-pad-lg { padding: 2rem; }
.card-pad-xl { padding: 2rem 2.5rem; }

.card-surface-low {
  background: var(--c-surface-low);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---- Icon Bubbles ---- */
.icon-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.icon-bubble-sm { width: 2.5rem; height: 2.5rem; }
.icon-bubble-md { width: 3rem;   height: 3rem; }
.icon-bubble-lg { width: 3.5rem; height: 3.5rem; }

.ib-tertiary  { background: var(--c-tertiary-20); }
.ib-secondary { background: var(--c-secondary-c-30); }
.ib-primary   { background: var(--c-primary-c-20); }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(253,198,92,0.3);
  border-radius: 9999px;
  color: var(--c-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .section-header { margin-bottom: 4rem; } }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-secondary);
  margin-bottom: 0.75rem;
}

/* ---- Typography ---- */
.h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--c-primary);
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .h1 { font-size: 3.75rem; } }

.h2 {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--c-primary);
}
@media (min-width: 640px) { .h2 { font-size: 2.25rem; } }

.h2-sm {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-primary);
}
@media (min-width: 640px) { .h2-sm { font-size: 1.875rem; } }

.h3 { font-size: 1.25rem; font-weight: 700; color: var(--c-primary); }
.h4 { font-size: 1rem;    font-weight: 700; color: var(--c-primary); }

.lead {
  font-size: 1.125rem;
  color: var(--c-primary-70);
  line-height: 1.7;
}
@media (min-width: 640px) { .lead { font-size: 1.25rem; } }

.body-text {
  color: var(--c-primary-70);
  line-height: 1.7;
}

.text-muted { color: var(--c-primary-60); }

/* ---- Grid Layouts ---- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.grid-5-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .grid-5-3 { grid-template-columns: 3fr 2fr; gap: 3rem; } }

.grid-lg-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .grid-lg-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---- Flex Utilities ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.flex-shrink-0 { flex-shrink: 0; }

/* ---- Spacing ---- */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ---- BG colors ---- */
.bg-surface     { background: var(--c-surface); }
.bg-surface-low { background: var(--c-surface-low); }
.bg-primary     { background: var(--c-primary); }

/* ---- Text colors ---- */
.text-white      { color: #fff; }
.text-white-70   { color: var(--c-white-70); }
.text-white-50   { color: var(--c-white-50); }
.text-secondary  { color: var(--c-secondary); }
.text-primary    { color: var(--c-primary); }
.text-tertiary   { color: var(--c-tertiary); }

/* ---- Border radius ---- */
.rounded     { border-radius: var(--radius); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* ---- Object fit ---- */
.object-cover { object-fit: cover; }

/* ---- Responsive image ---- */
.img-cover {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) { .img-cover { height: 24rem; } }

.img-cover-tall { height: 31.25rem; }

/* ---- Check list items ---- */
.check-list { display: flex; flex-direction: column; gap: 1rem; }
.check-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-item .material-symbols-outlined { margin-top: 0.125rem; flex-shrink: 0; font-size: 1.25rem; }
.check-item-title { font-weight: 600; color: var(--c-primary); margin-bottom: 0.25rem; font-size: 1rem; }
.check-item-body  { font-size: 0.875rem; color: var(--c-primary-60); }

/* ---- Arrow list items ---- */
.arrow-list { display: flex; flex-direction: column; gap: 0.75rem; }
.arrow-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.arrow-item p { color: var(--c-primary-70); }

/* ---- Phase tags ---- */
.phase-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-secondary);
  margin-bottom: 0.5rem;
}

/* ---- At-a-glance sidebar card ---- */
.glance-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.glance-card--low {
  background: var(--c-surface-low);
}
.glance-card-title {
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 1rem;
  text-align: center;
}
.glance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(51,25,86,0.04);
}
.glance-row:last-child { border-bottom: none; }
.glance-label { font-size: 0.875rem; color: var(--c-primary-60); }
.glance-value { font-size: 0.875rem; font-weight: 600; color: var(--c-primary); }
.glance-value--green { color: var(--c-tertiary); font-weight: 700; }
.glance-value--gold  { color: var(--c-secondary); font-weight: 700; }

.glance-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(51,25,86,0.05);
}
.glance-footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 0.25rem;
}
.glance-footer-body {
  font-size: 0.75rem;
  color: var(--c-primary-50);
}

/* sticky sidebar */
.sticky-sidebar { position: sticky; top: 7rem; }

/* ---- Insight box ---- */
.insight-box {
  background: var(--c-surface-low);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.insight-title { font-weight: 700; color: var(--c-primary); margin-bottom: 0.5rem; }
.insight-body  { color: var(--c-primary-60); font-size: 0.875rem; }

/* ---- Step cards ---- */
.step-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.step-badge {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  background: var(--c-secondary-container);
  color: var(--c-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ---- Service feature boxes ---- */
.feature-box {
  background: var(--c-surface-low);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
}
@media (min-width: 640px) { .feature-box { padding: 2.5rem; } }

.feature-box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.feature-box-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .feature-box-columns { grid-template-columns: repeat(3, 1fr); } }

.feature-col-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-primary);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

/* ---- Badge / tag pill ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}
.badge-tertiary {
  background: var(--c-tertiary-20);
  color: var(--c-tertiary);
}
.badge-recommended {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-tertiary);
  background: var(--c-tertiary-20);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
}

/* ---- Comparison table ---- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .compare-grid { grid-template-columns: repeat(2, 1fr); } }

.compare-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.compare-card--recommended {
  outline: 2px solid rgba(36,67,53,0.3);
}

.compare-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.compare-item p { font-size: 0.875rem; color: var(--c-primary-60); }
.compare-item.positive p { color: var(--c-primary-70); font-weight: 500; }

/* ---- CTA Sections ---- */
.cta-section {
  background: var(--c-primary);
  padding: 4rem 0;
  text-align: center;
}
@media (min-width: 640px) { .cta-section { padding: 6rem 0; } }

.cta-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .cta-title { font-size: 2.25rem; } }

.cta-body {
  font-size: 1.125rem;
  color: var(--c-white-70);
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }

/* ---- Team cards ---- */
.team-card {
  background: var(--c-surface-low);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.team-photo {
  width: 7rem;
  height: 7rem;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto 1rem;
}
.team-name { font-size: 1.25rem; font-weight: 700; color: var(--c-primary); }
.team-role { font-size: 0.875rem; font-weight: 600; color: var(--c-secondary); margin-bottom: 0.75rem; }
.team-bio  { font-size: 0.875rem; color: var(--c-primary-60); line-height: 1.625; }

/* ---- Phase journey timeline ---- */
.journey-section {
  background: var(--c-primary);
  padding: 4rem 0;
}
@media (min-width: 640px) { .journey-section { padding: 6rem 0; } }

.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  position: relative;
}
@media (min-width: 1024px) {
  .journey-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .journey-grid::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--c-white-10);
    border-radius: var(--radius-full);
  }
}

.journey-step { text-align: center; position: relative; }

.journey-circle {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}
.journey-circle--green  { background: var(--c-tertiary-container); }
.journey-circle--gold   { background: var(--c-secondary-container); }
.journey-circle--ghost  { background: rgba(255,255,255,0.2); }

.journey-circle span { font-size: 1.125rem; font-weight: 800; }
.journey-circle--green span,
.journey-circle--ghost span { color: #fff; }
.journey-circle--gold span  { color: var(--c-primary); }

.journey-title { color: #fff; font-weight: 700; margin-bottom: 0.25rem; }
.journey-time  { color: var(--c-white-50); font-size: 0.875rem; }
.journey-note  { color: var(--c-white-30, rgba(255,255,255,0.3)); font-size: 0.75rem; margin-top: 0.25rem; }

/* ---- Fear section box ---- */
.fear-box {
  background: var(--c-primary);
  border-radius: var(--radius);
  padding: 2rem;
}
@media (min-width: 640px) { .fear-box { padding: 3rem; } }
.fear-box-header { display: flex; align-items: flex-start; gap: 1rem; }
.fear-title { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
@media (min-width: 640px) { .fear-title { font-size: 1.875rem; } }

/* ---- Engagement model ---- */
.engage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--max-w-4xl);
  margin: 0 auto;
}
@media (min-width: 640px) { .engage-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Consultation form ---- */
.consult-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) { .consult-grid { grid-template-columns: 3fr 2fr; } }

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--c-primary); margin-bottom: 0.5rem; }
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--c-surface);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--c-primary);
  box-shadow: var(--shadow-soft);
  outline: none;
  transition: box-shadow 0.2s;
}
.form-input::placeholder { color: rgba(51,25,86,0.3); }
.form-input:focus { box-shadow: 0 0 0 2px var(--c-secondary-container), var(--shadow-soft); }
textarea.form-input { resize: none; }

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--c-primary);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.2s;
}
.form-submit:hover { background: var(--c-primary-container); }

/* What to expect sidebar */
.expect-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.expect-num {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--c-secondary-c-30);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--c-secondary);
}
.expect-title { font-size: 0.875rem; font-weight: 600; color: var(--c-primary); margin-bottom: 0.125rem; }
.expect-body  { font-size: 0.75rem; color: var(--c-primary-50); }

.confidentiality-box {
  background: rgba(36,67,53,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Success message */
.success-msg {
  display: none;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--c-tertiary-20);
  border-radius: var(--radius);
}
.success-msg.show { display: block; }
.success-inner { display: flex; align-items: flex-start; gap: 0.75rem; }
.success-title { font-size: 0.875rem; font-weight: 700; color: var(--c-primary); margin-bottom: 0.25rem; }
.success-body  { font-size: 0.75rem; color: var(--c-primary-60); }

/* ---- Blog listing ---- */
.blog-header {
  background: var(--c-surface-low);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Post Card ---- */
.post-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.post-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--c-surface-low);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary-30);
}

.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.post-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-secondary);
  margin-bottom: 0.75rem;
}

.post-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.post-card:hover .post-card-title { color: var(--c-primary-container); }

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--c-primary-60);
  line-height: 1.625;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--c-primary-50);
  padding-top: 1rem;
  border-top: 1px solid rgba(51,25,86,0.06);
}

.post-card-author-img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  object-fit: cover;
}

/* ---- Individual Post ---- */
.post-hero {
  background: var(--c-surface-low);
}

.post-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-primary);
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .post-title { font-size: 2.75rem; } }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--c-primary-60);
  margin-bottom: 2rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.post-author-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.post-author-name { font-weight: 600; color: var(--c-primary); }

.post-featured-img {
  width: 100%;
  max-height: 32rem;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

/* Post body content */
.post-content {
  max-width: 42rem;
  margin: 0 auto;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--c-primary);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.25rem; }

.post-content p {
  color: var(--c-primary-70);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

.post-content ul,
.post-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.post-content ol { list-style: decimal; }

.post-content li {
  color: var(--c-primary-70);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 3px solid var(--c-secondary-container);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--c-primary-60);
}

.post-content a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover { color: var(--c-primary-container); }

.post-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 2rem auto;
  max-width: 100%;
}

.post-content code {
  background: var(--c-surface-low);
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.post-content pre {
  background: var(--c-primary);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.post-content pre code { background: none; padding: 0; color: inherit; }

.post-content hr {
  border: none;
  border-top: 2px solid var(--c-surface-mid);
  margin: 3rem 0;
}

.post-content figure { margin: 2rem 0; }
.post-content figcaption { text-align: center; font-size: 0.875rem; color: var(--c-primary-50); margin-top: 0.5rem; }

/* ---- Tag / Author pages ---- */
.archive-header { background: var(--c-surface-low); }
.archive-icon {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto 1.5rem;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 0;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--c-surface);
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s, background 0.2s;
}
.pagination a:hover { box-shadow: var(--shadow-md); background: var(--c-surface-low); }
.pagination-page { color: var(--c-primary-60); font-size: 0.875rem; }

/* ---- Error page ---- */
.error-page { text-align: center; padding: 8rem 1rem 6rem; }
.error-code { font-size: 8rem; font-weight: 800; color: var(--c-surface-mid); line-height: 1; margin-bottom: 1rem; }
.error-title { font-size: 2rem; font-weight: 700; color: var(--c-primary); margin-bottom: 1rem; }
.error-body  { color: var(--c-primary-60); margin-bottom: 2rem; }

/* ---- Nav overlap fix ---- */
.page-content { padding-top: 5rem; }
@media (min-width: 640px) { .page-content { padding-top: 5rem; } }
.page-content--tall { padding-top: 6rem; }
@media (min-width: 640px) { .page-content--tall { padding-top: 7rem; } }

/* ---- Private AI Hero opacity fix ---- */
.hero-bg-8 img { opacity: 0.08; }

/* ---- Text max widths ---- */
.max-w-2xl { max-width: var(--max-w-2xl); }
.max-w-3xl { max-width: var(--max-w-3xl); }

/* ---- Relative position ---- */
.relative { position: relative; }

/* ---- Image overlay card ---- */
.img-overlay-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: var(--c-surface-90);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.img-overlay-title { font-weight: 700; color: var(--c-primary); font-size: 0.875rem; }
.img-overlay-body  { color: var(--c-primary-60); font-size: 0.75rem; }

/* ---- What we handle grid ---- */
.handle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .handle-grid { grid-template-columns: repeat(4, 1fr); } }

.handle-card {
  background: var(--c-surface-low);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.handle-card .material-symbols-outlined { font-size: 1.875rem; color: var(--c-secondary); display: block; margin-bottom: 0.75rem; }
.handle-card h3 { font-weight: 700; color: var(--c-primary); margin-bottom: 0.5rem; font-size: 1rem; }
.handle-card p  { font-size: 0.875rem; color: var(--c-primary-60); }

/* ---- Service group layout (services page) ---- */
.service-section { margin-bottom: 5rem; }
@media (min-width: 640px) { .service-section { margin-bottom: 7rem; } }
.service-section:last-child { margin-bottom: 0; }

.service-reverse .service-img { order: 1; }
.service-reverse .service-desc { order: 2; }
@media (min-width: 1024px) {
  .service-reverse .service-img  { order: 1; }
  .service-reverse .service-desc { order: 2; }
}

/* ---- Responsive helpers ---- */
.hidden     { display: none; }
.md-hidden  { display: block; }
@media (min-width: 768px) { .md-hidden { display: none; } }

/* ---- Highlight "learn more" links ---- */
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-primary);
  transition: color 0.2s;
}
.learn-more:hover { color: var(--c-secondary); }

/* ---- Service card hover ---- */
.service-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s;
  display: block;
  color: inherit;
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-card:hover .service-card-title { color: var(--c-primary-container); }
.service-card:hover .learn-more { color: var(--c-secondary); }
.service-card-title { transition: color 0.2s; }

/* ---- Cal.com embed ---- */
#cal-embed { min-height: 450px; overflow: auto; }

/* ---- Text decoration ---- */
.underline-text a { text-decoration: underline; }

/* ---- Koenig editor card widths ---- */
.kg-width-wide {
  margin-left: calc(50% - 45vw);
  margin-right: calc(50% - 45vw);
  max-width: 90vw;
}
.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}
.kg-image { max-width: 100%; }

/* ---- No posts message ---- */
.no-posts {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--c-primary-60);
}
