/* ============================================================
   MuniGrowth Public Website Styles
   Professional institutional SaaS design
   ============================================================ */

:root {
  --mg-primary: #1B4F72;
  --mg-primary-light: #2E86C1;
  --mg-primary-dark: #154360;
  --mg-secondary: #148F77;
  --mg-secondary-light: #1ABC9C;
  --mg-accent: #D4AC0D;
  --mg-accent-light: #F4D03F;
  --mg-dark: #1C2833;
  --mg-gray-900: #212529;
  --mg-gray-700: #495057;
  --mg-gray-500: #6c757d;
  --mg-gray-300: #dee2e6;
  --mg-gray-100: #f8f9fa;
  --mg-white: #ffffff;
  --mg-gradient: linear-gradient(135deg, var(--mg-primary) 0%, var(--mg-primary-light) 100%);
  --mg-gradient-green: linear-gradient(135deg, var(--mg-secondary) 0%, var(--mg-secondary-light) 100%);
  --mg-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --mg-shadow: 0 4px 20px rgba(0,0,0,0.1);
  --mg-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --mg-radius: 12px;
  --mg-radius-lg: 20px;
  --mg-transition: all 0.3s ease;
}

/* ─── Reset & Base ─────────────────────────────── */
body.mg-public {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--mg-gray-700);
  line-height: 1.7;
  overflow-x: hidden;
}

body.mg-public h1, body.mg-public h2, body.mg-public h3,
body.mg-public h4, body.mg-public h5, body.mg-public h6 {
  color: var(--mg-dark);
  font-weight: 700;
  line-height: 1.3;
}

body.mg-public a {
  color: var(--mg-primary-light);
  text-decoration: none;
  transition: var(--mg-transition);
}

body.mg-public a:hover {
  color: var(--mg-primary);
}

/* ─── Accessibility: focus and skip link ───────── */
body.mg-public a:focus-visible,
body.mg-public button:focus-visible,
body.mg-public [tabindex="0"]:focus-visible {
  outline: 2px solid var(--mg-primary-light);
  outline-offset: 2px;
}
.mg-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--mg-primary);
  color: var(--mg-white);
  font-weight: 600;
  border-radius: var(--mg-radius);
  transition: top 0.2s ease;
}
.mg-skip-link:focus {
  top: 16px;
  outline: 2px solid var(--mg-accent);
  outline-offset: 2px;
}

/* ─── Navbar ───────────────────────────────────── */
.mg-navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 0.75rem 0;
  transition: var(--mg-transition);
  z-index: 1050;
}

.mg-navbar.scrolled {
  box-shadow: var(--mg-shadow-sm);
}

.mg-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--mg-primary) !important;
  background: none !important;
  padding: 0;
  border: none;
}

.mg-brand-wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mg-primary);
  line-height: 1;
}


.mg-logo-mark {
  width: 156px;
  height: 156px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

/* ─── Logo (shared) ─────────────────────────────── */
.mg-logo {
  background: transparent !important;
  object-fit: contain;
  display: block;
  height: auto;
  max-height: 100%;
}

.mg-navbar .navbar-brand img,
.mg-navbar .navbar-brand .mg-logo {
  height: 104px;
  width: auto;
  max-width: 104px;
  min-height: 104px;
  margin-right: 8px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  object-fit: contain;
  vertical-align: middle;
  /* No blend mode on navbar so logo stays visible on white */
}

.mg-nav-actions {
  flex-wrap: nowrap;
}


@media (max-width: 991.98px) {

  .mg-logo-mark {
    width: 200px;
    height: 200px;
    max-width: 220px;
    max-height: 220px;
    min-width: 180px;
    min-height: 180px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
    transition: width 0.3s, height 0.3s;
  }
  }
}

@media (max-width: 1535.98px) {
  .mg-navbar .nav-link {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.9rem;
  }

  .mg-nav-actions {
    gap: 0.35rem !important;
  }

  .mg-language-toggle {
    min-width: 64px;
    padding: 0.35rem 0.7rem;
  }
}

.mg-language-toggle {
  min-width: 78px;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
}

.mg-navbar .nav-link {
  color: var(--mg-gray-700) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px;
  transition: var(--mg-transition);
}

.mg-navbar .nav-link:hover,
.mg-navbar .nav-link.active {
  color: var(--mg-primary) !important;
  background: rgba(27, 79, 114, 0.06);
}

.mg-navbar .btn-login {
  color: var(--mg-primary) !important;
  font-weight: 600;
  border: 2px solid var(--mg-primary);
  border-radius: 8px;
  padding: 0.35rem 1rem !important;
}

.mg-navbar .btn-login:hover {
  background: var(--mg-primary);
  color: var(--mg-white) !important;
}

.mg-navbar .btn-get-started {
  background: var(--mg-gradient);
  color: var(--mg-white) !important;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 1.2rem !important;
  box-shadow: 0 2px 8px rgba(27, 79, 114, 0.3);
}

.mg-navbar .btn-get-started:hover {
  box-shadow: 0 4px 16px rgba(27, 79, 114, 0.4);
  transform: translateY(-1px);
}

/* ─── Navbar Mobile ─────────────────────────────── */
@media (max-width: 991.98px) {
  .mg-logo-mark {
    width: 72px;
    height: 72px;
  }
  .mg-navbar .navbar-brand img,
  .mg-navbar .navbar-brand .mg-logo {
    height: 72px;
    max-width: 72px;
    min-height: 72px;
  }
  .mg-navbar .navbar-collapse {
    padding: 1rem 0 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 0.5rem;
  }
  .mg-brand-wordmark {
    font-size: 1.15rem;
  }
  .mg-navbar .btn-login,
  .mg-navbar .btn-get-started {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.4rem;
  }
  .mg-nav-actions {
    flex-wrap: wrap;
    width: 100%;
    align-items: stretch;
    gap: 0.4rem;
  }
  .mg-nav-actions .dropdown {
    width: 100%;
  }
  .mg-language-toggle {
    width: 100%;
  }
  .mg-navbar .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,0.1);
    margin-top: 0.25rem;
    width: 100%;
  }
}

/* ─── Buttons ──────────────────────────────────── */
body.mg-public .btn-mg-primary,
body.mg-public a.btn-mg-primary {
  background: var(--mg-gradient);
  color: var(--mg-white) !important;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(27, 79, 114, 0.3);
  transition: var(--mg-transition);
}

body.mg-public .btn-mg-primary:hover,
body.mg-public .btn-mg-primary:focus,
body.mg-public .btn-mg-primary:active,
body.mg-public a.btn-mg-primary:hover,
body.mg-public a.btn-mg-primary:focus,
body.mg-public a.btn-mg-primary:active {
  color: var(--mg-white) !important;
  box-shadow: 0 4px 16px rgba(27, 79, 114, 0.4);
  transform: translateY(-2px);
}

body.mg-public .btn-mg-secondary,
body.mg-public a.btn-mg-secondary {
  background: var(--mg-gradient-green);
  color: var(--mg-white) !important;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(20, 143, 119, 0.3);
  transition: var(--mg-transition);
}

body.mg-public .btn-mg-secondary:hover,
body.mg-public .btn-mg-secondary:focus,
body.mg-public .btn-mg-secondary:active,
body.mg-public a.btn-mg-secondary:hover,
body.mg-public a.btn-mg-secondary:focus,
body.mg-public a.btn-mg-secondary:active {
  color: var(--mg-white) !important;
  box-shadow: 0 4px 16px rgba(20, 143, 119, 0.4);
  transform: translateY(-2px);
}

body.mg-public .btn-mg-outline,
body.mg-public a.btn-mg-outline {
  background: transparent;
  color: var(--mg-primary) !important;
  font-weight: 600;
  border: 2px solid var(--mg-primary);
  border-radius: 8px;
  padding: 0.7rem 2rem;
  font-size: 1rem;
  transition: var(--mg-transition);
}

body.mg-public .btn-mg-outline:hover,
body.mg-public .btn-mg-outline:focus,
body.mg-public .btn-mg-outline:active,
body.mg-public a.btn-mg-outline:hover,
body.mg-public a.btn-mg-outline:focus,
body.mg-public a.btn-mg-outline:active {
  background: var(--mg-primary);
  color: var(--mg-white) !important;
  transform: translateY(-2px);
}

body.mg-public .btn-mg-white,
body.mg-public a.btn-mg-white {
  background: var(--mg-white);
  color: var(--mg-primary) !important;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: var(--mg-transition);
}

body.mg-public .btn-mg-white:hover,
body.mg-public .btn-mg-white:focus,
body.mg-public .btn-mg-white:active,
body.mg-public a.btn-mg-white:hover,
body.mg-public a.btn-mg-white:focus,
body.mg-public a.btn-mg-white:active {
  color: var(--mg-primary-dark) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* ─── Hero Section ─────────────────────────────── */
.mg-hero {
  background: var(--mg-gradient);
  position: relative;
  padding: 14rem 0 12rem;
  overflow: hidden;
  min-height: calc(100vh - 72px);
}

.mg-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.mg-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top right, var(--mg-white) 49%, transparent 51%);
}

.mg-hero h1 {
  color: var(--mg-white);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.mg-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 540px;
}

.mg-hero .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--mg-white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.mg-hero .hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.mg-hero .hero-stats .stat {
  text-align: center;
}

.mg-hero .hero-stats .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--mg-white);
}

.mg-hero .hero-stats .stat-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-image-wrapper {
  position: relative;
}

.hero-dashboard-img {
  width: 100%;
  border-radius: var(--mg-radius-lg);
  box-shadow: var(--mg-shadow-lg);
}

/* ─── Sections ─────────────────────────────────── */
.mg-section {
  padding: 5rem 0;
}

.mg-section-gray {
  background: var(--mg-gray-100);
}

.mg-section-dark {
  background: var(--mg-dark);
  color: var(--mg-white);
}

.mg-section-dark h2,
.mg-section-dark h3,
.mg-section-dark h4 {
  color: var(--mg-white);
}

.mg-section-dark p {
  color: rgba(255,255,255,0.8);
}

.mg-section-gradient {
  background: var(--mg-gradient);
  color: var(--mg-white);
}

.mg-section-gradient h2,
.mg-section-gradient p {
  color: var(--mg-white);
}

.mg-section-gradient p {
  opacity: 0.9;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-tag {
  display: inline-block;
  background: rgba(27, 79, 114, 0.08);
  color: var(--mg-primary);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.mg-section-dark .section-tag,
.mg-section-gradient .section-tag {
  background: rgba(255,255,255,0.15);
  color: var(--mg-white);
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Feature Cards ────────────────────────────── */
.mg-card {
  background: var(--mg-white);
  border-radius: var(--mg-radius);
  padding: 2rem;
  box-shadow: var(--mg-shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--mg-transition);
  height: 100%;
}

.mg-card:hover {
  box-shadow: var(--mg-shadow);
  transform: translateY(-4px);
}

.mg-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--mg-white);
}

.mg-card .card-icon.bg-primary-gradient { background: var(--mg-gradient); }
.mg-card .card-icon.bg-green-gradient { background: var(--mg-gradient-green); }
.mg-card .card-icon.bg-accent { background: linear-gradient(135deg, var(--mg-accent) 0%, var(--mg-accent-light) 100%); }

.mg-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.mg-card p {
  font-size: 0.95rem;
  color: var(--mg-gray-500);
  margin-bottom: 0;
}

/* ─── Benefit Cards ────────────────────────────── */
.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--mg-white);
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--mg-transition);
}

.benefit-card:hover {
  box-shadow: var(--mg-shadow);
  transform: translateY(-2px);
}

.benefit-card .benefit-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--mg-white);
  background: var(--mg-gradient);
}

.benefit-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--mg-gray-500);
  margin-bottom: 0;
}

/* ─── Workflow Steps ───────────────────────────── */
.workflow-step {
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.step-image-wrapper {
  position: relative;
  margin-bottom: 1rem;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.step-image {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(27, 79, 114, 0.15);
  object-fit: cover;
  display: block;
}

.workflow-step .step-number {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mg-gradient);
  color: var(--mg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(27, 79, 114, 0.3);
}

.workflow-step h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.workflow-step p {
  font-size: 0.85rem;
  color: var(--mg-gray-500);
}

.workflow-connector {
  position: absolute;
  top: 30px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--mg-gray-300);
  z-index: 0;
}

/* ─── Stats Section ────────────────────────────── */
.stat-block {
  text-align: center;
  padding: 1.5rem;
}

.stat-block .stat-value {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--mg-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-block .stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* ─── Testimonials ─────────────────────────────── */
.testimonial-card {
  background: var(--mg-white);
  border-radius: var(--mg-radius);
  padding: 2rem;
  box-shadow: var(--mg-shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 1;
  color: var(--mg-primary-light);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: Georgia, serif;
}

.testimonial-card .testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--mg-gray-700);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mg-white);
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-card .author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--mg-dark);
}

.testimonial-card .author-title {
  font-size: 0.8rem;
  color: var(--mg-gray-500);
}

/* ─── Partner Logos ────────────────────────────── */
.partner-logo {
  height: 48px;
  opacity: 0.35;
  filter: grayscale(100%);
  transition: var(--mg-transition);
}

.partner-logo:hover {
  opacity: 0.7;
  filter: grayscale(0%);
}

/* ─── Pricing Cards ────────────────────────────── */
.pricing-card {
  background: var(--mg-white);
  border-radius: var(--mg-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--mg-shadow-sm);
  border: 2px solid transparent;
  transition: var(--mg-transition);
  height: 100%;
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--mg-shadow);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--mg-primary-light);
  box-shadow: var(--mg-shadow);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mg-gradient);
  color: var(--mg-white);
  padding: 0.3rem 1.25rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card .plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mg-gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.pricing-card .plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--mg-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-card .plan-price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: super;
}

.pricing-card .plan-price .period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--mg-gray-500);
}

.pricing-card .plan-desc {
  font-size: 0.9rem;
  color: var(--mg-gray-500);
  margin-bottom: 2rem;
}

.pricing-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.pricing-card .feature-list li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--mg-gray-700);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-card .feature-list li i {
  color: var(--mg-secondary);
  font-size: 1rem;
}

.pricing-card .feature-list li.disabled {
  color: var(--mg-gray-300);
}

.pricing-card .feature-list li.disabled i {
  color: var(--mg-gray-300);
}

/* ─── Comparison Table ─────────────────────────── */
.comparison-table {
  border-radius: var(--mg-radius);
  overflow: hidden;
  box-shadow: var(--mg-shadow-sm);
}

.comparison-table thead th {
  background: var(--mg-primary);
  color: var(--mg-white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
  border: none;
}

.comparison-table thead th:first-child {
  text-align: left;
}

.comparison-table tbody td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  vertical-align: middle;
  border-color: var(--mg-gray-100);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table .bi-check-circle-fill {
  color: var(--mg-secondary);
  font-size: 1.1rem;
}

.comparison-table .bi-x-circle {
  color: var(--mg-gray-300);
  font-size: 1.1rem;
}

/* ─── FAQ Accordion ────────────────────────────── */
.mg-accordion .accordion-item {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--mg-radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.mg-accordion .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  color: var(--mg-dark);
  background: var(--mg-white);
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}

.mg-accordion .accordion-button:not(.collapsed) {
  color: var(--mg-primary);
  background: rgba(27, 79, 114, 0.03);
}

.mg-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231B4F72'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.mg-accordion .accordion-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--mg-gray-700);
}

/* ─── Timeline ─────────────────────────────────── */
.mg-timeline {
  position: relative;
  padding: 2rem 0;
}

.mg-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--mg-gray-300);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item .timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mg-primary);
  border: 3px solid var(--mg-white);
  box-shadow: 0 0 0 3px var(--mg-primary-light);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item .timeline-content {
  width: 45%;
  background: var(--mg-white);
  padding: 1.5rem;
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow-sm);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-item .timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mg-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.timeline-item h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--mg-gray-500);
  margin-bottom: 0;
}

/* ─── Charts ───────────────────────────────────── */
.chart-container {
  background: var(--mg-white);
  border-radius: var(--mg-radius);
  padding: 1.5rem;
  box-shadow: var(--mg-shadow-sm);
}

.chart-container h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--mg-dark);
}

/* ─── Contact Form ─────────────────────────────── */
.mg-form .form-control,
.mg-form .form-select {
  border-radius: 8px;
  border: 1.5px solid var(--mg-gray-300);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--mg-transition);
}

.mg-form .form-control:focus,
.mg-form .form-select:focus {
  border-color: var(--mg-primary-light);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.15);
}

.mg-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--mg-dark);
  margin-bottom: 0.5rem;
}

/* ─── CTA Sections ─────────────────────────────── */
.mg-cta {
  padding: 5rem 0;
  text-align: center;
}

.mg-cta h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.mg-cta p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ─── Footer ───────────────────────────────────── */
.mg-footer {
  background: #e2e8f0;
  color: var(--mg-gray-700);
  padding: 4rem 0 0;
}

.mg-footer .mg-logo,
.mg-footer img[alt="MuniGrowth"] {
  height: 198px;
  max-width: 990px;
  background: transparent !important;
  object-fit: contain;
}

.mg-footer h5 {
  color: var(--mg-dark);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.mg-footer a {
  color: var(--mg-primary);
  font-size: 0.9rem;
  transition: var(--mg-transition);
}

.mg-footer a:hover {
  color: var(--mg-primary-light);
}

.mg-footer .footer-links li {
  color: var(--mg-gray-700);
}

.mg-footer p {
  color: var(--mg-gray-700);
}

.mg-footer .footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.mg-footer .footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mg-gray-700);
}

.mg-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mg-footer .footer-links li {
  margin-bottom: 0.5rem;
}

.mg-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(27,79,114,0.1);
  color: var(--mg-primary);
  margin-right: 0.5rem;
  transition: var(--mg-transition);
}

.mg-footer .social-links a:hover {
  background: var(--mg-primary);
  color: var(--mg-white);
}

/* ─── Legal Pages ──────────────────────────────── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  color: var(--mg-gray-500);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--mg-gray-100);
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

/* ─── Page Header ──────────────────────────────── */
.mg-page-header {
  background: var(--mg-gradient);
  padding: 10rem 0 8rem;
  text-align: center;
  min-height: calc(100vh - 72px);
  position: relative;
  overflow: hidden;
}

.mg-page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top right, var(--mg-white) 49%, transparent 51%);
}

.mg-page-header h1 {
  color: var(--mg-white);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.mg-page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero image background for page headers */
.mg-page-header.mg-page-header-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mg-page-header.mg-page-header-hero::after {
  height: 80px;
}

/* ─── Feature Detail Cards ─────────────────────── */
.feature-detail-card {
  background: var(--mg-white);
  border-radius: var(--mg-radius-lg);
  padding: 3rem;
  box-shadow: var(--mg-shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 2rem;
  transition: var(--mg-transition);
}

.feature-detail-card:hover {
  box-shadow: var(--mg-shadow);
}

.feature-detail-card .feature-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--mg-white);
  margin-bottom: 1.5rem;
}

.feature-detail-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-detail-card p {
  font-size: 1rem;
  color: var(--mg-gray-500);
  margin-bottom: 1.25rem;
}

.feature-detail-card .feature-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-detail-card .feature-highlights li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--mg-gray-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-detail-card .feature-highlights li i {
  color: var(--mg-secondary);
}

/* ─── Contact Info ─────────────────────────────── */
.contact-info-card {
  background: var(--mg-gradient);
  border-radius: var(--mg-radius-lg);
  padding: 2.5rem;
  color: var(--mg-white);
  height: 100%;
}

.contact-info-card h3 {
  color: var(--mg-white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item .info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-info-item h5 {
  color: var(--mg-white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-info-item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 992px) {
  .mg-hero,
  .mg-page-header {
    min-height: auto;
  }

  .mg-hero {
    padding: 10rem 0 8rem;
  }

  .mg-page-header {
    padding: 10rem 0 8rem;
  }

  .mg-hero h1 {
    font-size: 2.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .mg-page-header h1 {
    font-size: 2.2rem;
  }

  .hero-image-wrapper {
    margin-top: 2rem;
  }

  .mg-timeline::before {
    left: 20px;
  }

  .timeline-item .timeline-dot {
    left: 20px;
  }

  .timeline-item .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .mg-hero,
  .mg-page-header {
    min-height: auto;
  }

  .mg-hero {
    padding: 6.5rem 0 4.5rem;
    text-align: center;
  }

  .mg-page-header {
    padding: 6.25rem 0 4.25rem;
  }

  .mg-hero h1 {
    font-size: 2rem;
  }

  .mg-hero .lead {
    margin: 0 auto;
  }

  .mg-hero .hero-stats {
    justify-content: center;
  }

  .mg-section {
    padding: 3.5rem 0;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .feature-detail-card {
    padding: 2rem;
  }

  .stat-block .stat-value {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .mg-hero,
  .mg-page-header {
    min-height: auto;
    padding: 5.5rem 0 3.5rem;
  }

  .mg-hero h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .mg-hero .lead {
    font-size: 1rem;
  }

  .mg-hero .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-image-wrapper {
    display: none;
  }

  .mg-footer-logo {
    width: 44px;
    height: 44px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }
}

/* ─── Animations ───────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MUNIGROWTH_HOTFIX_2026_03_19 */
:root {
  --mg-navbar-height: 112px;
}

.mg-navbar {
  padding: 0.5rem 0;
}

.mg-navbar-spacer {
  height: var(--mg-navbar-height);
}

/* Ensure hero always clears fixed navbar */
.mg-hero {
  padding-top: calc(var(--mg-navbar-height) + 6rem) !important;
}

.mg-logo-mark {
  width: 104px;
  height: 104px;
}

.mg-navbar .navbar-brand img,
.mg-navbar .navbar-brand .mg-logo {
  height: 104px;
  width: auto;
  max-width: 104px;
  min-height: unset;
}

@media (max-width: 991.98px) {
  :root {
    --mg-navbar-height: 84px;
  }

  .mg-logo-mark,
  .mg-navbar .navbar-brand img,
  .mg-navbar .navbar-brand .mg-logo {
    width: 72px;
    height: 72px;
    max-width: 72px;
  }
}


.mg-footer-logo {
  width: 150px;
  height: 150px;
  display: inline-block;
  object-fit: contain;
  flex: 0 0 auto;
}

/* ─── Social Proof Trust Bar ───────────────────── */
.mg-trust-bar {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 1.75rem 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 2.5rem;
}

.trust-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mg-primary);
  line-height: 1.1;
}

.trust-label {
  font-size: 0.78rem;
  color: var(--mg-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.trust-divider {
  width: 1px;
  height: 48px;
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .trust-divider { display: none; }
  .trust-stat { padding: 0.5rem 1.25rem; }
  .trust-number { font-size: 1.4rem; }
}

/* ─── Dashboard Product Preview ────────────────── */
.mg-dashboard-preview {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(27,79,114,0.18);
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.dashboard-preview-chrome {
  background: #f1f3f5;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dee2e6;
  display: block;
}

.chrome-dots span:nth-child(1) { background: #ff5f57; }
.chrome-dots span:nth-child(2) { background: #febc2e; }
.chrome-dots span:nth-child(3) { background: #28c840; }

.chrome-bar { flex: 1; display: flex; justify-content: center; }

.chrome-url {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.25rem 0.9rem;
  font-size: 0.78rem;
  color: var(--mg-gray-500);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 240px;
  max-width: 400px;
}

.dashboard-preview-body {
  padding: 1.5rem;
  background: #f8f9fc;
}

.preview-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.preview-kpi-card {
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #fff;
}

.preview-kpi-blue  { background: linear-gradient(135deg, #1B4F72, #2E86C1); }
.preview-kpi-green { background: linear-gradient(135deg, #0E6655, #148F77); }
.preview-kpi-gold  { background: linear-gradient(135deg, #9A7D0A, #D4AC0D); }
.preview-kpi-teal  { background: linear-gradient(135deg, #117A65, #1ABC9C); }

.preview-kpi-icon { font-size: 1.2rem; opacity: 0.8; }
.preview-kpi-label { font-size: 0.72rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.04em; }
.preview-kpi-value { font-size: 1.5rem; font-weight: 800; line-height: 1; }

.preview-content-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.preview-panel {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.preview-panel-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mg-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.preview-row {
  font-size: 0.82rem;
  color: var(--mg-gray-700);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-row:last-child { border-bottom: none; }

.preview-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 600;
  flex-shrink: 0;
}

.preview-badge-blue  { background: rgba(46,134,193,0.12); color: #1B4F72; }
.preview-badge-green { background: rgba(20,143,119,0.12); color: #148F77; }
.preview-badge-gold  { background: rgba(212,172,13,0.15);  color: #9A7D0A; }

@media (max-width: 767.98px) {
  .preview-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .preview-content-row { grid-template-columns: 1fr; }
  .chrome-url { display: none; }
}


@media (max-width: 991.98px) {
  :root {
    --mg-navbar-height: 84px;
  }

  .mg-logo-mark {
    width: 108px;
    height: 108px;
  }

  .mg-footer-logo {
    width: 100px;
    height: 100px;
  }

  .mg-navbar .navbar-brand img,
  .mg-navbar .navbar-brand .mg-logo {
    height: 108px;
    max-width: 108px;
    min-height: unset;
  }
}

/* Startup navbar logo sizing override (explicit and stable across duplicate rules) */
.mg-navbar .navbar-brand .mg-logo-mark,
.mg-navbar .navbar-brand img.mg-logo-mark {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  min-height: unset !important;
}

@media (max-width: 991.98px) {
  .mg-navbar .navbar-brand .mg-logo-mark,
  .mg-navbar .navbar-brand img.mg-logo-mark {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
  }
}
