/* ============================================
   Mosaic Learning - Static Site Styles
   Mosaic Learning brand and color scheme (mosaiclearning.com)
   ============================================ */

/* Calibri: system font (Windows/Office); fallbacks for other systems */

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

/* Mosaic Learning brand colors (mosaiclearning.com) */
:root {
  --copper: #B85C38;
  --copper-dark: #A04D2E;
  --copper-light: #c97a5c;
  --navy: #0B3558;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --orange-100: #ffedd5;
  --orange-400: #fb923c;
  --transition: all 0.3s ease;
  /* Hero bottom fade: shared band height + multi-stop ramps (soft handoff to section below) */
  --hero-gradient-band: clamp(180px, 32vh, 320px);
  --hero-fade-slate: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(248, 250, 252, 0.12) 28%,
    rgba(248, 250, 252, 0.45) 52%,
    rgba(248, 250, 252, 0.88) 78%,
    var(--slate-50) 100%
  );
  --hero-fade-white: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 28%,
    rgba(255, 255, 255, 0.45) 52%,
    rgba(255, 255, 255, 0.88) 78%,
    #fff 100%
  );
  /* Shared shell height: home .hero and .blog-hero (flex + gradient band fill below) */
  --hero-shell-min-height: 45vh;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Gill Sans', 'Gill Sans MT', 'Gill Sans Nova', Calibri, 'Trebuchet MS', sans-serif;
  color: var(--slate-800);
  line-height: 1.6;
  background: var(--white);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Utility */
.text-copper { color: var(--copper); }
.text-white { color: var(--white); }

/* ============================================
   Component Placeholders (prevent layout shift
   while JS injects shared components)
   ============================================ */
#announcement-bar { min-height: 40px; background: var(--copper); }
#site-header { min-height: 72px; background: rgba(255,255,255,0.95); }
#site-footer { min-height: 300px; }

/* ============================================
   Announcement Bar
   ============================================ */
.announcement-bar {
  background: var(--copper);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
}

.announcement-bar a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
}

.announcement-bar a:hover { opacity: 0.9; }

/* ============================================
   Navigation
   ============================================ */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container,
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: var(--transition);
  padding: 8px 0;
}

.navbar-links a:hover { color: var(--slate-900); }
.navbar-links a.active { color: var(--copper); }

/* Nav dropdowns (desktop) */
.nav-item {
  position: relative;
}
.nav-trigger {
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--slate-600);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.nav-trigger:hover { color: var(--slate-900); }
.nav-item.active .nav-trigger { color: var(--copper); }
.nav-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  min-width: 200px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--slate-100);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--slate-600);
  white-space: nowrap;
}
.nav-dropdown a:hover {
  color: var(--copper);
  background: var(--slate-50);
}

.navbar-cta,
a.navbar-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

a.navbar-cta.btn {
  font-weight: 700;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-800);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  gap: 12px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-600);
  padding: 8px 0;
  display: block;
}

.mobile-menu a:hover,
.mobile-menu a.active { color: var(--copper); }

.mobile-menu .nav-dropdown-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu .nav-dropdown-wrap summary {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-600);
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu .nav-dropdown-wrap summary::-webkit-details-marker { display: none; }
.mobile-menu .nav-dropdown-wrap summary::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}
.mobile-menu .nav-dropdown-wrap[open] summary::after { transform: rotate(180deg); }
.mobile-menu .nav-dropdown-wrap summary:hover { color: var(--copper); }
.mobile-menu .nav-dropdown-sub {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
  padding-bottom: 8px;
}
.mobile-menu .nav-dropdown-sub a {
  font-size: 0.95rem;
  padding: 6px 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--copper);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--copper-dark);
  /* Match .btn-white:hover interaction (CTA “Book a Demo”) */
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* Services pages (Content & Courseware, Custom Dev): anchor + btn-lg needs explicit hover so scale/shadow match CTA */
a.btn.btn-primary.btn-lg {
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
a.btn.btn-primary.btn-lg:hover {
  background: var(--copper-dark);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--copper);
  border: 2px solid var(--copper);
}

.btn-secondary:hover {
  background: var(--copper);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-white {
  background: var(--white);
  color: var(--copper);
}

.cta-section .btn-white {
  font-weight: 700;
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 24px 32px; font-size: 1.125rem; }

/* Product & services subpages: rectangular buttons to match .feature-pill (10px) */
body.product-services-page .btn {
  border-radius: 10px;
}

/* Book a Demo (header + mobile + CTA): always pill like index.html */
.navbar-inner a.btn.navbar-cta,
.mobile-menu a.btn.btn-primary,
.cta-section .btn.cta-demo-btn {
  border-radius: 9999px;
}

/* Services pages: Get Started (Content & Courseware, Custom Development) */
body.product-services-page a.btn.btn-primary.btn-lg {
  border-radius: 9999px;
}

/* ============================================
   Forge Teaser (top of homepage)
   ============================================ */
.forge-teaser {
  position: relative;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: var(--slate-900);
  color: var(--white);
  padding: 0;
  position: relative;
  min-height: var(--hero-shell-min-height);
  overflow: hidden;
  display: flex;
  font-family: Calibri, 'Segoe UI', Candara, sans-serif;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

/* All .hero sections: gradient is a flex child that starts right below text */
.hero .hero-gradient {
  position: relative;
  flex: 1 1 auto;
  min-height: var(--hero-gradient-band);
  height: auto;
  background: var(--hero-fade-slate);
}

/* Homepage-only */
.hero-home .container {
  padding: 80px 24px 0;
  flex: 0 0 auto;
  text-align: center;
}
.hero-home h1 {
  text-align: center;
  margin-bottom: 16px;
}

/* Product pages: centered text */
.hero-product .container {
  padding: 80px 24px 0;
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Match blog-hero vertical rhythm (tighter than default .hero h1) */
.hero-product h1 {
  margin-bottom: 16px;
}

.hero-product .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

/* Two-line hero subtext (e.g. Member Engagement): line 1 = full sentence, line 2 = tagline */
.hero-sub.hero-sub-stacked {
  max-width: min(56rem, 96vw);
}
.hero-sub.hero-sub-stacked .hero-sub-line {
  display: block;
}
.hero-sub.hero-sub-stacked .hero-sub-line:first-child {
  white-space: nowrap;
}
.hero-sub.hero-sub-stacked .hero-sub-line + .hero-sub-line {
  margin-top: 0.35em;
}
@media (max-width: 640px) {
  .hero-sub.hero-sub-stacked .hero-sub-line:first-child {
    white-space: normal;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center -96px;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.90), rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.60));
  z-index: 1;
}

/* Gradient transition from hero into section below (defaults; layout-specific overrides use --hero-fade-* ) */
.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--hero-gradient-band);
  min-height: var(--hero-gradient-band);
  background: var(--hero-fade-slate);
  z-index: 2;
  pointer-events: none;
}

.typewriter-cursor {
  animation: blink 1s step-end infinite;
  color: var(--white);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero .container {
  position: relative;
  z-index: 3;
  padding: 80px 24px;
  flex: 0 0 auto;
}

/* Win over rule above: blog-hero uses no bottom padding on .container so the gradient sits flush */
.hero.hero-home .container,
.hero.hero-product .container {
  padding: 80px 24px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  color: var(--slate-900);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 32px;
  letter-spacing: -0.025em;
  color: var(--white);
}

.typewriter-line {
  font-weight: 300;
  font-size: inherit;
  white-space: nowrap;
}

.hero-bold {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  display: block;
}

.hero-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Home hero: no extra band below subcopy (align height with blog-hero) */
.hero-home .hero-sub-row {
  margin-bottom: 0;
}

.hero p,
.hero-sub {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-bottom: 0;
  line-height: 1.625;
}

.hero-sub-row .hero-sub {
  margin-bottom: 0;
}

/* Home hero: about statement expanded width, line break after "experience", centered */
.hero-home .hero-sub-row {
  justify-content: center;
  width: 100%;
}
.hero-home .hero-sub {
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-sizing: border-box;
  /* Match .blog-hero p footprint for similar total hero height */
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
}
.hero-home .hero-sub-line1 {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .hero-home .hero-sub-line1 {
    white-space: normal;
  }
}

.hero-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ============================================
   Forge Announcement Section
   ============================================ */
.forge-section {
  background: var(--slate-900);
  color: var(--white);
  padding: 96px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.forge-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 60%);
  border-radius: 50%;
  transform: translate(50%, 50%);
}

.forge-section .container { position: relative; z-index: 1; }

.badge-dark {
  display: inline-block;
  background: rgba(184, 92, 56, 0.15);
  color: var(--copper);
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  border: 1px solid rgba(184, 92, 56, 0.3);
}

.forge-section h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 300;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}

.forge-section h2 span,
.text-orange { color: var(--copper); }

.forge-logo { width: 180px; margin: 0 auto 24px; }

.forge-section p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ============================================
   Why Unions Section
   ============================================ */
.why-section {
  padding: 96px 24px;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: block;
  color: var(--copper);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--slate-900);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--slate-500);
  max-width: 600px;
  margin: 0 auto;
}

.cards-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.card,
.why-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 32px 24px;
  transition: var(--transition);
  text-align: center;
}

.card:hover,
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: var(--copper);
}

.card-icon,
.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: var(--orange-100);
  color: var(--copper);
}

.why-card:nth-child(1) .why-icon { background: rgba(234, 88, 12, 0.6); color: #ffedd5; }
.why-card:nth-child(2) .why-icon { background: rgba(37, 99, 235, 0.6); color: #eff6ff; }
.why-card:nth-child(3) .why-icon { background: rgba(217, 119, 6, 0.6); color: #fffbeb; }
.why-card:nth-child(4) .why-icon { background: rgba(61, 90, 58, 0.6); color: #e3ebe1; }

.card h3,
.why-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.card p,
.why-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.625;
}

.section-link { text-align: center; }

.section-link a {
  color: var(--copper);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-link a:hover { color: var(--copper-dark); gap: 10px; }

/* ============================================
   Partners Section
   ============================================ */
.partners-section {
  padding: 96px 24px;
  background: var(--slate-50);
  text-align: center;
}

.partners-section .section-label { display: block; text-align: center; }

.partners-section h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 300;
  color: var(--slate-900);
  margin-top: 12px;
  margin-bottom: 48px;
}

.partners-logos,
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.partner-logo {
  width: 320px;
  min-width: 320px;
  height: 160px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  transition: var(--transition);
  flex-shrink: 0;
}


.partner-logo img,
.partners-logos img {
  max-height: 96px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.partner-logo:hover img,
.partners-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Partner logo marquee: 0.5in between slots, seamless infinite loop */
.marquee-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  padding: 16px 0;
  min-height: 100px;
  display: flex;
  align-items: center;
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 192px;
  z-index: 10;
  pointer-events: none;
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--slate-50), transparent);
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--slate-50), transparent);
}

/* One flex row: [set A][set B identical]
   Uses padding-right (not gap) so each item is exactly (width + padding) wide.
   This makes -50% translate equal exactly set A's total span — no stutter on loop. */
.marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: partners-marquee-loop 50s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Fixed-width cells + right padding = uniform spacing with stutter-free -50% loop */
.marquee-track .partner-logo {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 11rem;
  min-width: 11rem;
  max-width: 11rem;
  height: 88px;
  padding: 0 0.25in 0 0.25in;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-track .partner-logo img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.marquee-track .partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes partners-marquee-loop {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
  padding: 96px 24px;
  background: var(--white);
  text-align: center;
}

.testimonials-container {
  max-width: 900px;
  margin: 0 auto;
}

.testimonials-section .section-label {
  display: block;
  text-align: center;
  color: var(--copper);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.testimonials-section h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.25rem);
  font-weight: 300;
  color: var(--slate-900);
  margin-bottom: 48px;
}

.testimonials-section h2 strong {
  font-weight: 600;
}

/* Carousel */
.testimonial-carousel {
  position: relative;
  min-height: 280px;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.4s ease;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-card {
  background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 48px 64px;
  text-align: center;
  position: relative;
}

.testimonial-quote-icon {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 48px;
  height: 48px;
  color: rgba(184, 92, 56, 0.2);
}

.testimonial-card blockquote p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--slate-700);
  line-height: 1.625;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
}

.testimonial-logo {
  width: 120px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 12px;
}

/* Knock out solid white JPEG backgrounds on light cards (e.g. IUPAT DC51) */
.testimonial-logo.testimonial-logo-blend {
  mix-blend-mode: multiply;
}

.testimonial-author strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
}

.testimonial-author span {
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* Controls */
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.testimonial-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: inherit;
}

.testimonial-arrow:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--slate-300);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot.active {
  background: var(--copper);
  width: 32px;
}

.testimonial-link { text-align: center; margin-top: 32px; }

.testimonial-link a,
.section-link a {
  color: var(--copper);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   Platform Section
   ============================================ */
.platform-section {
  padding: 96px 24px;
  background: var(--copper);
  text-align: center;
}

.platform-section .section-label,
.platform-section > .container > .section-label {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.platform-section > .container > h2,
.platform-section .section-header h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 64px;
  text-align: center;
}

.platform-section h2 strong {
  font-weight: 600;
}

.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.platform-tab,
.tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: inherit;
}

.platform-tab.active,
.platform-tab:hover,
.tab-btn.active,
.tab-btn:hover {
  background: var(--white);
  color: var(--copper);
}

.platform-content,
.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.platform-content.active,
.tab-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.platform-content.active,
.tab-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.platform-text h3,
.tab-text h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
}

.platform-text p,
.tab-text p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.625;
  margin-bottom: 32px;
}

.platform-features,
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.platform-feature,
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--slate-600);
}

.platform-section .feature-list li {
  color: #fff;
}

.platform-feature .check,
.feature-list .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Image with phone overlay */
.tab-image-wrapper {
  position: relative;
}

.tab-image {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

.tab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.tab-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.5), transparent);
  border-radius: 16px;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
  padding: 96px 24px;
  background: var(--white);
  text-align: center;
}

.about-section .section-label {
  display: block;
  text-align: center;
  color: var(--copper);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.about-section > .container > h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--slate-900);
  margin-bottom: 24px;
}

.about-text {
  max-width: 800px;
  margin: 0 auto 56px;
  text-align: center;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.625;
  margin-bottom: 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--slate-900);
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.625;
  margin-bottom: 16px;
}

.about-pillars,
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.pillar,
.pillar-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--slate-50);
  border-radius: 24px;
  border: 1px solid var(--slate-200);
  transition: var(--transition);
}

.pillar:hover,
.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.pillar-icon.blue,
.pillar-blue { background: #dbeafe; color: #3b82f6; }
.pillar-icon.orange,
.pillar-orange { background: var(--orange-100); color: var(--copper); }
.pillar-icon.green,
.pillar-green { background: #d1fae5; color: #10b981; }

.pillar h4,
.pillar-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.6;
}

.about-stat {
  text-align: center;
  padding: 32px 0;
}

.about-stat .stat-number {
  font-size: 4rem;
  font-weight: 300;
  color: var(--copper);
  line-height: 1;
}

.about-stat .stat-label {
  font-size: 1.1rem;
  color: var(--slate-500);
  margin-top: 8px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: var(--slate-900);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 60%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 60%);
  border-radius: 50%;
  transform: translate(50%, 50%);
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section .cta-content {
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.cta-section h2 span { color: var(--copper); }

.cta-section h2.cta-tagline {
  white-space: nowrap;
  text-align: center;
}

.cta-section .cta-demo-btn { font-weight: 700; }

.cta-section p.cta-subline {
  align-self: stretch;
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 24px;
  line-height: 1.5;
}

.cta-section p {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 24px 32px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 64px;
  margin-bottom: 48px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer ul li { margin-bottom: 12px; }

.footer ul li a {
  font-size: 0.9rem;
  color: var(--white);
}

.footer ul li a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: var(--slate-500);
}

.footer-legal-links a:hover {
  color: var(--white);
}

.footer-logo {
  display: block;
  flex-shrink: 0;
}

.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.5;
}

.footer-contact-item a {
  color: var(--white);
}

.footer-contact-item a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ============================================
   Blog Page
   ============================================ */
.blog-hero {
  position: relative;
  min-height: var(--hero-shell-min-height);
  display: flex;
  font-family: Calibri, 'Segoe UI', Candara, sans-serif;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  padding: 0;
  background-image: url('../assets/images/blog-hero.jpg');
  background-size: cover;
  background-position: center;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,23,42,0.88), rgba(15,23,42,0.65), rgba(15,23,42,0.55));
  z-index: 0;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 80px 24px 0;
}

.blog-hero .hero-gradient {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: var(--hero-gradient-band);
  height: auto;
  background: var(--hero-fade-white);
}

.blog-hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.blog-hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto;
}

/* Product page using blog-hero shell: fade into slate-50 like other .hero pages */
.blog-hero.blog-hero--product {
  background-size: cover;
  background-repeat: no-repeat;
  /* Shift crop up (same idea as .hero-bg center -96px) so faces lower in the art stay visible */
  background-position: center -110px;
}

.blog-hero.blog-hero--product .hero-gradient {
  background: var(--hero-fade-slate);
}

/* Stacked tagline under blog-hero h1 (e.g. Member Engagement) */
.blog-hero .hero-sub.hero-sub-stacked {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: min(56rem, 96vw);
  margin: 0 auto;
  line-height: 1.5;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 80px 0;
}

.blog-card {
  display: block;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--slate-200);
  color: inherit;
  text-decoration: none;
}

.blog-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-100);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body { padding: 32px; }

.blog-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
  line-height: 1.4;
  transition: var(--transition);
}

.blog-card:hover h3 { color: var(--copper); }

.blog-card p {
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.blog-meta .author { font-weight: 600; color: var(--slate-700); }

.read-more {
  color: var(--copper) !important;
  font-weight: 600 !important;
}

.read-more:hover { color: var(--copper-dark) !important; }

/* ============================================
   Blog Post (single)
   ============================================ */
.post-hero {
  background: var(--slate-900);
  color: var(--white);
  padding: 96px 24px 64px;
  text-align: center;
}

.post-hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.post-hero .post-meta {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.post-hero .post-meta .author { font-weight: 600; color: var(--white); }
.post-hero .post-meta .author-role { font-weight: 600; color: var(--white); }

.article-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.article-prose p {
  font-size: 1.0625rem;
  color: var(--slate-700);
  line-height: 1.75;
  margin-bottom: 1.25em;
}

.article-prose p:last-of-type { margin-bottom: 0; }

.article-prose h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  line-height: 1.35;
}

.article-prose h2:first-child { margin-top: 0; }

.article-prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.article-prose ul,
.article-prose ol {
  margin: 1em 0 1.5em;
  padding-left: 1.5em;
}

.article-prose ol li { list-style: decimal; }

.article-prose li {
  margin-bottom: 0.5em;
  font-size: 1.0625rem;
  color: var(--slate-700);
  line-height: 1.7;
  list-style: disc;
}

.article-prose a {
  color: var(--copper);
  text-decoration: underline;
}

.article-prose a:hover { color: var(--copper-dark); }

.article-cta-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 32px;
  margin-top: 3em;
  text-align: center;
}

.article-cta-box p {
  margin-bottom: 1em;
}

.article-cta-box .btn { margin-top: 8px; }

/* Post hero with background image */
.post-hero-img {
  position: relative;
  min-height: 45vh;
  display: flex;
  font-family: Calibri, 'Segoe UI', Candara, sans-serif;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
}

.post-hero-img .post-hero-content {
  flex: 0 0 auto;
}

.post-hero-img .hero-gradient {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  min-height: var(--hero-gradient-band);
  height: auto;
  background: var(--hero-fade-white);
}
.post-hero-img .post-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.post-hero-img .post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.55) 55%, rgba(15,23,42,0.2) 100%);
  z-index: 1;
}
.post-hero-img .post-hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 24px 56px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.post-hero-img .post-hero-content > .section-label {
  color: #fff;
}
.post-hero-img h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}
.post-hero-img .post-meta {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}
.post-hero-img .post-meta .author { font-weight: 600; color: #fff; }
.post-hero-img .post-meta .author-role { font-weight: 600; color: #fff; }
.post-hero-img .post-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-top: 12px;
}

/* Stat boxes grid */
.blog-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 2em 0;
}
/* Fixed 2×2 grid (e.g. four stat boxes under one heading) */
.blog-stats-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.blog-stat {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}
.blog-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 8px;
}
.blog-stat-label {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.5;
}

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--copper);
  margin: 2em 0;
  padding: 20px 28px;
  background: var(--slate-50);
  border-radius: 0 12px 12px 0;
}
.pull-quote p {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: var(--slate-900) !important;
  font-style: italic;
  margin: 0 !important;
  line-height: 1.5 !important;
}
.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--slate-500);
  font-style: normal;
}

/* Emphasis highlight box */
.blog-emphasis {
  background: rgba(184,92,56,0.08);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 2em 0;
}
.blog-emphasis p {
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  color: var(--slate-900) !important;
  margin: 0 !important;
}

/* ============================================
   Team Page
   ============================================ */
.team-hero {
  background: var(--slate-900);
  color: var(--white);
  padding: 0;
  text-align: center;
  display: flex;
  font-family: Calibri, 'Segoe UI', Candara, sans-serif;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 45vh;
  overflow: hidden;
}

.team-hero .container {
  flex: 0 0 auto;
  padding: 80px 24px 0;
}

.team-hero .hero-gradient {
  position: relative;
  flex: 1 1 auto;
  min-height: var(--hero-gradient-band);
  height: auto;
  background: var(--hero-fade-white);
}

.team-hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.team-hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 700px;
  margin: 0 auto;
}

.forge-hero-logo-wrap {
  margin-bottom: 32px;
}
.forge-hero-logo {
  max-width: min(100%, 560px);
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 80px 0;
}

.team-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--slate-200);
}

.team-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.team-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.team-card-body { padding: 24px; }

.team-card-role {
  display: inline-block;
  color: var(--copper);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.team-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.team-card-image-wrap {
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: var(--slate-200);
  cursor: pointer;
  font: inherit;
  line-height: 0;
  border-radius: 50%;
  overflow: hidden;
}

.team-card-image-wrap:focus {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

/* Team Bio Modal */
.team-bio-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.team-bio-modal[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.team-bio-modal[hidden] { display: none !important; }
.team-bio-modal[data-open="true"][hidden] { display: flex !important; }

.team-bio-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  cursor: pointer;
}

.team-bio-modal-content {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}

.team-bio-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.team-bio-modal-close:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

.team-bio-modal-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 32px;
  overflow: auto;
}

.team-bio-modal-image-wrap {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.team-bio-modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-bio-modal-role {
  color: var(--copper);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.team-bio-modal-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.team-bio-modal-bio {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.7;
}

.team-bio-modal-bio p { margin-bottom: 1em; }
.team-bio-modal-bio p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .team-bio-modal-inner {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .team-bio-modal-image-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
}

/* ============================================
   Contact Page
   ============================================ */
.contact-hero {
  background: var(--slate-900);
  color: var(--white);
  padding: 0;
  text-align: center;
  display: flex;
  font-family: Calibri, 'Segoe UI', Candara, sans-serif;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 45vh;
  overflow: hidden;
}

.contact-hero .container {
  flex: 0 0 auto;
  padding: 80px 24px 0;
}

.contact-hero .hero-gradient {
  position: relative;
  flex: 1 1 auto;
  min-height: var(--hero-gradient-band);
  height: auto;
  background: var(--hero-fade-white);
}

.contact-hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.contact-hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 80px 0;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange-100);
  color: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--slate-500);
}

.contact-info-card a { color: var(--copper); }
.contact-info-card a:hover { color: var(--copper-dark); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--slate-900);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--slate-800);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================
   Solutions Page
   ============================================ */
.solutions-hero {
  background: var(--slate-900);
  color: var(--white);
  padding: 96px 24px 80px;
  text-align: center;
}

.solutions-hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 16px;
}

.solutions-hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.solutions-hero p + p { margin-top: 12px; }

/* Solution subpages (Content & Courseware, Custom Development) */
.solution-subpage-section {
  padding: 64px 24px;
  background: var(--white);
}

.solution-subpage-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.solution-subpage-h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 20px;
}

.solution-subpage-h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-800);
  margin: 32px 0 16px;
}

.solution-subpage-lead {
  font-size: 1.125rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.solution-subpage-section p {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.solution-subpage-list {
  list-style: disc;
  padding-left: 24px;
  margin: 16px 0 24px;
  color: var(--slate-600);
  line-height: 1.75;
}

.solution-subpage-list li {
  margin-bottom: 8px;
}

.solution-subpage-section .btn {
  margin-top: 8px;
}

/* Solution section with illustration (two-column) */
.solution-subpage-section.with-graphic .container {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.solution-subpage-section.with-graphic .solution-graphic {
  order: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--slate-50);
}
.solution-subpage-section.with-graphic .solution-graphic img {
  width: 100%;
  height: auto;
  display: block;
}
.solution-subpage-section.with-graphic .solution-copy {
  order: 0;
}
.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.balance-grid > * {
  min-width: 0;
}

/* Product / services: right-column showcase blocks (scroll-animate-in in main.js) */
.product-page-showcase-visual {
  will-change: opacity, transform;
}

.product-page-showcase-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Education & Training: showcase matches Platform section background (no white card) */
.education-platform-showcase {
  border-radius: 24px;
  overflow: hidden;
  background: var(--slate-50);
}
.education-platform-showcase-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Member Engagement: phone visual — 3D tilt on inner img; wrapper gets blog-style scroll reveal */
.member-engagement-showcase {
  will-change: opacity, transform;
}
.member-engagement-showcase-img {
  width: 100%;
  height: auto;
  display: block;
  transform: perspective(1000px) rotateY(-12deg) rotateX(4deg);
  transform-origin: center center;
}

/* Member engagement feature icons – responsive grid (Event Management style) */
.member-engagement-features-grid .feature-icon-item {
  min-width: 0;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1.5px solid var(--copper);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-900);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(184,92,56,0.08);
}

.feature-pill svg {
  color: var(--copper);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .education-content-grid,
  .balance-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .education-text-column {
    justify-content: flex-start !important;
    gap: 48px;
  }
  .solution-subpage-section.with-graphic .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .solution-subpage-section.with-graphic .solution-graphic {
    order: 0;
  }
  .solution-subpage-section.with-graphic .solution-copy {
    order: 1;
  }

  /* CTA: allow wrapping on mobile to prevent horizontal clipping */
  .cta-section h2.cta-tagline {
    white-space: normal;
  }

  .cta-section .cta-content p {
    white-space: normal !important;
    max-width: min(100%, 38ch);
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Terms & Conditions / legal content page */
.terms-content-section {
  padding: 64px 24px 96px;
  background: var(--white);
}

.terms-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--slate-700);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.terms-content .terms-intro {
  font-size: 1.0625rem;
  margin-bottom: 24px;
}

.terms-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--slate-900);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--slate-200);
}

.terms-content h2:first-of-type {
  margin-top: 0;
}

.terms-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-800);
  margin: 24px 0 12px;
}

.terms-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-800);
  margin: 20px 0 8px;
}

.terms-content ol {
  padding-left: 1.5em;
  margin: 16px 0 24px;
}

.terms-content ol li {
  margin-bottom: 12px;
}

.terms-content ul ul {
  margin: 8px 0 0;
  padding-left: 1.5em;
}

.terms-content p {
  margin-bottom: 16px;
}

.terms-content a {
  color: var(--copper);
}

.terms-content a:hover {
  color: var(--copper-dark);
}

.terms-list {
  list-style: none;
  padding-left: 0;
  margin: 16px 0 24px;
}

.terms-list li {
  margin-bottom: 12px;
  padding-left: 1.5em;
  position: relative;
}

.terms-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--copper);
}

.terms-exhibit {
  margin: 32px 0;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
  background: var(--slate-50);
}

.terms-exhibit-header {
  padding: 16px 24px;
  background: var(--slate-900);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.terms-exhibit-body {
  padding: 24px;
  font-size: 0.9375rem;
  color: var(--slate-700);
  line-height: 1.7;
}

.terms-exhibit-body p {
  margin-bottom: 12px;
}

.terms-exhibit-body p:last-child {
  margin-bottom: 0;
}

/* Exhibit B — Support Terms SLA table (matches SLA doc design) */
.sla-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0;
}

.sla-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: underline;
}

.sla-table tbody td {
  background: var(--slate-100);
  color: var(--slate-800);
  padding: 16px 18px;
  border: 1px solid var(--slate-200);
  vertical-align: top;
  line-height: 1.55;
}

.sla-table tbody tr:first-child td {
  border-top: none;
}

.sla-table .severity-title {
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.sla-table td p {
  margin: 0 0 8px 0;
  font-size: inherit;
}

.sla-table td p:last-child {
  margin-bottom: 0;
}

/* Our Values cards (our-story) – centered title/text, second row centered */
.values-cards-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.values-card {
  flex: 0 0 320px;
  max-width: 100%;
  padding: 32px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--slate-200);
}

.values-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(184,92,56,0.12);
  color: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.values-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--copper);
  margin: 0 0 16px 0;
  text-align: center;
}

.values-card-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.75;
  text-align: center;
}

.values-section .section-label {
  text-align: center;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 80px 0;
}

.solution-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.solution-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
  border-color: var(--copper);
}

.solution-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.solution-icon.blue { background: var(--orange-100); color: var(--copper); }
.solution-icon.green { background: #dbeafe; color: #3b82f6; }
.solution-icon.orange { background: #d1fae5; color: #10b981; }

.solution-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

.solution-features { text-align: left; }

.solution-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--slate-700);
  margin-bottom: 10px;
}

.solution-features li .check-icon {
  color: var(--copper);
  font-weight: bold;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .cards-grid,
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  #about-section .container > div { grid-template-columns: 1fr !important; }
  .know-labor-section .container > div { grid-template-columns: 1fr !important; }
  .platform-content.active,
  .tab-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    gap: 16px;
  }
  
  .navbar-links.open { display: flex; }
  .hamburger { display: flex; }
  .navbar-cta .btn { display: none; }
  a.navbar-cta { display: none; }
  
  /* Gradient band removed on small screens: no bottom padding reserved for fade */
  .hero .container { padding: 60px 24px 48px; }
  .hero.hero-home .container,
  .hero.hero-product .container { padding: 60px 24px 48px; }
  .blog-hero .container { padding: 60px 24px 48px; }
  .team-hero .container,
  .contact-hero .container { padding: 60px 24px 48px; }
  .blog-hero.blog-hero--product {
    background-position: center 42%;
  }
  .hero h1 { font-size: 2.5rem; }

  /* Hero bottom fade: hidden on small screens (cleaner handoff to section below) */
  .hero-gradient {
    display: none;
  }

  /* Without the flex-growing gradient, shell min-height left a bare slate-900 strip under copy */
  .hero,
  .blog-hero,
  .team-hero,
  .contact-hero,
  .post-hero-img {
    min-height: auto;
  }

  /* Home + product/service heroes: desktop .hero-bg uses center -96px; on mobile that crop can leave a slate strip at the bottom */
  .hero-home .hero-bg,
  .hero-product .hero-bg {
    background-position: center top;
  }
  
  .section-header h2,
  .cta-section h2 { font-size: 1.75rem; }
  
  .cards-grid,
  .why-grid,
  .blog-grid,
  .team-grid,
  .contact-grid,
  .solutions-grid { grid-template-columns: 1fr; }
  
  #about-section .container > div { grid-template-columns: 1fr !important; }
  #about-section .container > div > div:last-child { display: none; }
  #about-section div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  .know-labor-section .container > div { grid-template-columns: 1fr !important; }

  /* Footer: Quick Links + Platform centered as a pair (two columns); Contact centered full width below */
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    grid-template-rows: auto auto;
    gap: 20px 0;
    align-items: start;
  }
  .footer-grid .footer-col:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    text-align: center;
  }
  .footer-grid .footer-col:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    text-align: center;
    margin-inline-start: 0.5in;
  }
  .footer-grid .footer-col:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    text-align: center;
    width: 100%;
    max-width: min(100%, 22rem);
  }
  .footer-grid .footer-col:nth-child(3) h4,
  .footer-grid .footer-col:nth-child(3) ul {
    text-align: center;
  }
  .footer-grid .footer-col:nth-child(3) ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-grid .footer-col:nth-child(3) ul li {
    width: 100%;
  }
  .footer-grid .footer-col:nth-child(3) ul li a {
    justify-content: center;
  }
  .footer h4 {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }
  .footer ul li a {
    font-size: 0.8rem;
    word-break: break-word;
  }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; align-items: center; }
  .footer-logo { align-self: center; }
  .about-pillars,
  .pillars-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .partner-logo { width: 240px; min-width: 240px; height: 120px; }
  .partners-row { gap: 16px; }
  /* Marquee mobile: keep gap: 0 (padding on each cell maintains stutter-free -50% loop) */
  .marquee-track { gap: 0; }
  .marquee-track .partner-logo {
    width: 8.5rem;
    min-width: 8.5rem;
    max-width: 8.5rem;
    height: 76px;
    padding: 0 0.25in;
  }
  .marquee-track .partner-logo img { max-height: 56px; }
  .marquee-fade { width: 72px; }
  .marquee-wrapper { min-height: 88px; padding: 12px 0; }
  
  .platform-tabs { gap: 8px; }
  .platform-tab,
  .tab-btn { padding: 12px 16px; font-size: 0.8rem; }
  .tab-btn svg { display: none; }
  
  .testimonial-card { padding: 32px 24px; }
  .testimonial-quote-icon { width: 36px; height: 36px; top: 20px; left: 20px; }
}

@media (max-width: 480px) {
  .hero-sub-row { flex-direction: column; align-items: flex-start; }
  .hero-buttons { flex-direction: column; justify-content: flex-start; }
  .btn-lg { padding: 18px 32px; }
}
