/* Global UX enhancements — injected into every page by the build */

/* 0. Section-level overrides — applied LAST so we beat per-page inline blocks */

/* Standardize section padding across every page */
section.hero { padding: 96px 0 64px !important; }
section.outcomes-section,
section.support-section,
section.clients-section,
section.testimonials-section,
section.cta-section,
section.stats-section,
section.services-section,
section.mission-section,
section.approach-section,
section.team-section,
section.section { padding: 72px 0 !important; }
@media (min-width: 768px) {
  section.hero { padding: 140px 0 96px !important; }
  section.outcomes-section,
  section.support-section,
  section.clients-section,
  section.testimonials-section,
  section.cta-section,
  section.stats-section,
  section.services-section,
  section.mission-section,
  section.approach-section,
  section.team-section,
  section.section { padding: 96px 0 !important; }
}

/* Outcome cards: transparent card body, brand-border to match the rest */
.outcome-card {
  background: transparent !important;
  border: 1px solid var(--color-border, #D6EEFA) !important;
  box-shadow: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.outcome-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(44, 152, 217, 0.12) !important;
  border-color: var(--color-accent, #2c98d9) !important;
}

/* Testimonials: zero section background, no shadow halo, cards use the blue gradient */
.testimonials-section {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.testimonial-card {
  background: var(--grad-card) !important;
  border: 1px solid var(--color-border, #D6EEFA) !important;
  box-shadow: 0 8px 24px rgba(44, 152, 217, 0.08) !important;
}

/* Approach + team cards (about page): align polish with outcome/service cards */
.approach-card {
  border: 1px solid var(--color-border, #D6EEFA) !important;
  box-shadow: 0 8px 24px rgba(44, 152, 217, 0.08) !important;
}
.team-card {
  border: 1px solid var(--color-border, #D6EEFA) !important;
  box-shadow: 0 6px 18px rgba(44, 152, 217, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.team-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 32px rgba(44, 152, 217, 0.15) !important;
}

/* Dark spotlight section — defined here so it wins per-page inline overrides */
.section-dark {
  position: relative;
  color: #e6edf5 !important;
  background:
    radial-gradient(circle at 80% 20%, rgba(44, 152, 217, 0.22), transparent 55%),
    radial-gradient(circle at 15% 90%, rgba(44, 152, 217, 0.12), transparent 50%),
    linear-gradient(180deg, #0e1b34 0%, #0a1429 100%) !important;
}
.section-dark .stat-icon,
.section-dark .stat-icon svg,
.section-dark .stat-icon path { color: #87a3c7 !important; fill: currentColor !important; }
.section-dark .stat-number { color: #2c98d9 !important; }
.section-dark .stat-desc { color: #c7d1de !important; }
.section-dark .btn-primary { background: #2c98d9 !important; }
.section-dark .btn-primary:hover { background: #5bb4e8 !important; }

/* Heading + paragraph color sweep — wins over per-page inline overrides */
body:not([data-page="blog"]) h1,
body:not([data-page="blog"]) h2,
body:not([data-page="blog"]) h3,
body:not([data-page="blog"]) h4,
body:not([data-page="blog"]) h5,
body:not([data-page="blog"]) h6 { color: #415c76; }
body:not([data-page="blog"]) p { color: #30343B; }
/* Dark section reasserts white headings */
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #ffffff !important; }
.section-dark p, .section-dark blockquote, .section-dark li { color: #c7d1de !important; }


/* 1. Reading-progress bar (blog pages — body[data-page="blog"]) */
.tb-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: #415c76;
  z-index: 9999;
  transition: width 0.06s linear;
  pointer-events: none;
}

/* 2. Reading-time pill on blog posts */
.tb-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8F6FC;
  color: #425b76;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 8px 0 16px;
  letter-spacing: 0.02em;
}
.tb-reading-time::before {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23425b76' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>") no-repeat center;
  background-size: contain;
}

/* 3. Sticky mobile CTA — bottom-right floating consult button */
.tb-sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 998;
  background: #415c76;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(65, 92, 118, 0.35), 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.tb-sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tb-sticky-cta:hover { background: #2f4860; }
.tb-sticky-cta::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>") no-repeat center;
  background-size: contain;
}
/* Hide on desktop — primary nav CTA is enough */
@media (min-width: 900px) {
  .tb-sticky-cta { display: none; }
}
/* Hide on the contact page itself */
body[data-page="contact"] .tb-sticky-cta,
body[data-page="thanks"] .tb-sticky-cta { display: none; }

/* 5. Section reveal — fade + translate-up as sections enter viewport */
.tb-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.tb-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .tb-reveal { opacity: 1; transform: none; transition: none; }
}
