/* Restore the homepage design after WPBakery regenerates its vc_custom IDs. */
.msm-design-preview.home .msm-home-projects-section h3,
.msm-design-preview.home .msm-home-blog-section h3 {
  margin: 0 0 10px !important;
  color: var(--msm-gold, #bd9551) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: .19em !important;
  text-transform: uppercase !important;
}
.msm-design-preview.home .msm-home-projects-section h2,
.msm-design-preview.home .msm-home-blog-section h2 {
  margin: 0 !important;
  color: var(--msm-ink, #17242a) !important;
  font-size: clamp(32px, 4vw, 50px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -.04em !important;
  text-transform: none !important;
}

.msm-design-preview.home .msm-home-projects-section .nd_cc_masonry_content {
  display: grid !important;
  float: none !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px;
  height: auto !important;
  max-width: 1080px;
  margin-right: auto !important;
  margin-left: auto !important;
}
.msm-design-preview.home .msm-home-projects-section .nd_cc_masonry_item {
  position: static !important;
  width: 100% !important;
  min-width: 0;
  float: none !important;
  transform: none !important;
}
.msm-design-preview.home .msm-home-projects-section .nd_cc_masonry_item > .nd_cc_section { padding: 0 !important; }
.msm-design-preview.home .msm-home-projects-section .msm-project-card {
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid var(--msm-line, #e6e3db);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 36, 42, .06);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.msm-design-preview.home .msm-home-projects-section .msm-project-card:hover {
  border-color: #ceb689;
  box-shadow: 0 16px 36px rgba(23, 36, 42, .12);
}
.msm-design-preview.home .msm-home-projects-section .msm-project-card__image-link { display: block; overflow: hidden; }
.msm-design-preview.home .msm-home-projects-section .msm-project-card__image-link img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform .3s ease;
}
.msm-design-preview.home .msm-home-projects-section .msm-project-card:hover .msm-project-card__image-link img { transform: scale(1.025); }
.msm-design-preview.home .msm-home-projects-section .msm-project-card__footer {
  position: static !important;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100% !important;
  height: auto !important;
  min-height: 92px;
  padding: 20px 24px !important;
  box-sizing: border-box;
  background: #fff !important;
}
.msm-design-preview.home .msm-home-projects-section .msm-project-card__title { position: static !important; flex: 1; min-width: 0; }
.msm-design-preview.home .msm-home-projects-section .msm-project-card__title p {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--msm-ink, #17242a) !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
  letter-spacing: -.015em !important;
  text-transform: none !important;
}
.msm-design-preview.home .msm-home-projects-section .msm-project-card__button {
  flex: 0 0 44px;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  background: var(--msm-cream, #f7f5f0) !important;
}
.msm-design-preview.home .msm-home-projects-section .msm-project-card__button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--msm-ink, #17242a);
  font-size: 23px;
  line-height: 1;
}
.msm-design-preview.home .msm-home-projects-section .msm-project-card__badge {
  top: 16px !important;
  right: 16px !important;
  padding: 7px 12px !important;
  border-radius: 99px;
  background: rgba(23, 36, 42, .82) !important;
  font-size: 11px;
  letter-spacing: .1em !important;
}

.msm-design-preview.home .msm-home-blog-section .msm-blog-ready {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  height: auto !important;
}
.msm-design-preview.home .msm-home-blog-section .msm-blog-ready > .nd_options_masonry_item {
  position: static !important;
  width: 100% !important;
  min-width: 0;
  padding: 0 !important;
  float: none !important;
}
.msm-design-preview.home .msm-home-blog-section .msm-home-blog-card {
  min-width: 0;
  border: 1px solid var(--msm-line, #e6e3db);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #fcfbf7);
  box-shadow: 0 7px 22px rgba(23, 36, 42, .05);
}
.msm-design-preview.home .msm-home-blog-section .msm-home-blog-card h3 {
  margin: 0 0 12px !important;
  color: var(--msm-ink, #17242a) !important;
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
  letter-spacing: -.02em !important;
  text-transform: none !important;
}
.msm-design-preview.home .msm-home-blog-section .msm-home-blog-card h3 a { color: inherit !important; }
.msm-design-preview.home .msm-home-blog-section .msm-home-blog-card p {
  color: var(--msm-muted, #647079) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
}
.msm-design-preview.home .msm-home-blog-section .msm-home-blog-card__link {
  color: #9a712e !important;
  border-top: 1px solid #eee9df;
  font-size: 14px;
  font-weight: 650;
}

/* Keep footer navigation visibly interactive and point every service to its page. */
.msm-design-preview #nd_options_footer_5 .nd_options_menu_component ul.menu { display: flex !important; flex-direction: column; gap: 2px; }
.msm-design-preview #nd_options_footer_5 .nd_options_menu_component ul.menu li { display: block !important; width: 100% !important; }
.msm-design-preview #nd_options_footer_5 .nd_options_menu_component ul.menu li a[href] {
  display: block !important;
  width: auto !important;
  padding: 8px 10px !important;
  border-radius: 9px;
  color: #e0e5e7 !important;
  text-decoration: none !important;
  transition: color .2s ease, background-color .2s ease;
}
.msm-design-preview #nd_options_footer_5 .nd_options_menu_component ul.menu li a[href]:hover,
.msm-design-preview #nd_options_footer_5 .nd_options_menu_component ul.menu li a[href]:focus-visible {
  color: #f0cf7d !important;
  background: rgba(255, 255, 255, .07) !important;
}
.msm-design-preview #nd_options_footer_5 .nd_options_menu_component ul.menu li a[href]:focus-visible { outline: 2px solid #e1bd73; outline-offset: 2px; }

@media (max-width: 960px) {
  .msm-design-preview.home .msm-home-blog-section .msm-blog-ready { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .msm-design-preview.home .msm-home-projects-section .nd_cc_masonry_content { grid-template-columns: 1fr !important; gap: 18px; }
  .msm-design-preview.home .msm-home-projects-section .msm-project-card__footer { min-height: 0; padding: 14px !important; }
  .msm-design-preview.home .msm-home-projects-section .msm-project-card__title p { font-size: 15px !important; }
  .msm-design-preview.home .msm-home-blog-section .msm-blog-ready { grid-template-columns: 1fr; gap: 16px; }
}
