:root {
  --msc-blue-50: #eff6ff;
  --msc-blue-600: #2563eb;
  --msc-blue-700: #1d4ed8;
  --msc-green-600: #16a34a;
  --msc-gray-50: #f9fafb;
  --msc-gray-600: #4b5563;
  --msc-gray-800: #1f2937;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: inherit;
  color: var(--msc-gray-800);
  background: #fff;
}

main {
  padding-top: 82px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--msc-gray-50);
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--msc-green-600);
  color: #fff;
}

.btn-primary:hover {
  background: #15803d;
}

.btn-secondary {
  background: #fff;
  color: var(--msc-blue-700);
  border: 2px solid var(--msc-blue-700);
}

.btn-secondary:hover {
  background: var(--msc-blue-50);
}

.btn-icon {
  margin-right: .5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border-radius: .75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  border: 1px solid #e5e7eb;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: var(--msc-blue-50);
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--msc-blue-600);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--msc-gray-600);
  margin-bottom: 1.5rem;
}

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

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--msc-gray-600);
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.page-header {
  background: var(--msc-blue-50);
  padding: 6rem 0 4rem;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--msc-gray-800);
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--msc-gray-600);
  max-width: 40rem;
  margin: 0 auto;
}

.highlight-box {
  background: var(--msc-green-600);
  color: #fff;
  padding: 2rem;
  border-radius: .75rem;
  margin: 2rem 0;
}

.highlight-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.highlight-text {
  font-size: 1.125rem;
  opacity: .95;
}

/* ------------------------------------------------------------
   Fallback header/footer markup inside <custom-header>/<custom-footer>
   Purpose: Ensure navigation + primary CTAs exist when JS/Shadow DOM does not execute.
   Note: These selectors do not affect the Shadow DOM-rendered UI.
------------------------------------------------------------ */

custom-header .msc-fallback-header {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-height: 82px;
  box-sizing: border-box;
}

/* When the web component hydrates, hide the light DOM fallback.
   The header is fixed-position, so removing it does not shift main content. */
custom-header[data-hydrated] .msc-fallback-header {
  display: none;
}

custom-header .msc-fallback-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  padding-right: 3.75rem;
}

custom-header .msc-fallback-header .header-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

custom-header .msc-fallback-header .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
  margin-right: 5.00rem;
}

custom-header .msc-fallback-header .logo-img {
  height: 58px;
  width: auto;
  display: block;
}

custom-header .msc-fallback-header .desktop-nav {
  display: none;
}

custom-header .msc-fallback-header .nav-list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

custom-header .msc-fallback-header .nav-link {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

custom-header .msc-fallback-header .nav-link:hover {
  color: #2563eb;
}

custom-header .msc-fallback-header .nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.3s ease;
}

custom-header .msc-fallback-header .nav-link:hover:after {
  width: 100%;
}

custom-header .msc-fallback-header .cta-buttons {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

custom-header .msc-fallback-header .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  text-align: center;
}

custom-header .msc-fallback-header .cta-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
}

custom-header .msc-fallback-header .cta-primary {
  background: #15803d;
  color: #ffffff;
}

custom-header .msc-fallback-header .cta-primary:hover {
  background: #166534;
}

custom-header .msc-fallback-header .cta-secondary {
  background: #ffffff;
  color: #1d4ed8;
  border: 2px solid #1d4ed8;
}

custom-header .msc-fallback-header .cta-secondary:hover {
  background: #f3f4f6;
}

custom-header .msc-fallback-header .cta-text {
  background: #0369a1;
  color: #ffffff;
}

custom-header .msc-fallback-header .cta-text:hover {
  background: #075985;
}

custom-header .msc-fallback-header .msc-fallback-details {
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  height: 82px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

custom-header .msc-fallback-header .msc-fallback-details > summary {
  list-style: none;
}

custom-header .msc-fallback-header .msc-fallback-details > summary::marker {
  content: '';
  font-size: 0;
}

custom-header .msc-fallback-header .msc-fallback-details > summary::-webkit-details-marker {
  display: none;
}

custom-header .msc-fallback-header .msc-fallback-details .menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #374151;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

custom-header .msc-fallback-header .msc-fallback-details .msc-fallback-menu-glyph {
  font-size: 22px;
  line-height: 1;
}

custom-header .msc-fallback-header .mobile-menu {
  display: none;
  position: fixed;
  top: 82px;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

custom-header .msc-fallback-header .mobile-menu {
  max-height: 60vh;
  overflow: auto;
}

custom-header .msc-fallback-header .msc-fallback-details[open] .mobile-menu {
  display: block;
}

/* When the fallback mobile menu is open (JS blocked), reserve vertical space so the
   fixed-position menu panel does not cover the hero content.
   Use the general sibling combinator (~) because pages place an sr-only nav between
   <custom-header> and <main>.
   Scoped to browsers supporting :has(). */
custom-header:not([data-hydrated]):has(.msc-fallback-details[open]) ~ main#main-content {
  padding-top: calc(82px + min(60vh, 420px)) !important;
}

/* Mobile menu: ensure links and CTAs stack cleanly */
custom-header .msc-fallback-header .mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

custom-header .msc-fallback-header .mobile-nav-link {
  display: block;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  padding: 0.25rem 0;
}

custom-header .msc-fallback-header .mobile-nav-link:hover {
  color: #2563eb;
}

custom-header .msc-fallback-header .mobile-cta-buttons {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

custom-header .msc-fallback-header .mobile-cta-buttons .cta-btn {
  width: 100%;
}


custom-footer .msc-fallback-footer {
  display: block;
  background: #1f2937;
  color: #ffffff;
}

custom-footer[data-hydrated] .msc-fallback-footer {
  display: none;
}

/* When the web component hydrates, hide the light DOM fallback footer. */
custom-footer[data-hydrated] .msc-fallback-footer {
  display: none;
}

custom-footer .msc-fallback-footer .footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

custom-footer .msc-fallback-footer .footer-section {
  margin-bottom: 1.5rem;
  min-width: 0;
  flex: 1 1 100%;
}

custom-footer .msc-fallback-footer .footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f9fafb;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

custom-footer .msc-fallback-footer .footer-text {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 1rem;
}

custom-footer .msc-fallback-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

custom-footer .msc-fallback-footer .footer-link-item {
  margin-bottom: .75rem;
}

custom-footer .msc-fallback-footer .footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color .2s ease;
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

custom-footer .msc-fallback-footer .footer-link:hover {
  color: var(--msc-blue-600);
}

custom-footer .msc-fallback-footer .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: .75rem;
}

custom-footer .msc-fallback-footer .contact-icon {
  margin-right: .5rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
}

custom-footer .msc-fallback-footer .contact-icon svg {
  width: 20px;
  height: 20px;
}

custom-footer .msc-fallback-footer .social-links {
  display: flex;
  gap: 1rem;
}

custom-footer .msc-fallback-footer .social-link {
  color: #9ca3af;
  transition: color .2s ease;
  display: flex;
  align-items: center;
}

custom-footer .msc-fallback-footer .social-link:hover {
  color: var(--msc-blue-600);
}

custom-footer .msc-fallback-footer .footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: .875rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  custom-footer .msc-fallback-footer .footer-section {
    flex: 1 1 calc(50% - 2rem);
  }
}

@media (min-width: 1024px) {
  custom-footer .msc-fallback-footer .footer-grid {
    justify-content: space-between;
  }
  custom-footer .msc-fallback-footer .footer-section {
    flex: 0 1 auto;
    max-width: 290px;
    margin-bottom: 0;
  }
}
