/* ========================================
   OVERRIDES v3 - Complete fixes
   ======================================== */
:root { --flame: #00ff66; }

/* ---- NAV SOCIAL ICONS ---- */
.ms-nav-social {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 14px;
}
.ms-nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 12px;
  background: rgba(0,0,0,0.3);
  transition: all 0.2s ease;
  text-decoration: none;
}
.ms-nav-social a:hover {
  background: var(--ms-gold);
  color: #000;
  border-color: var(--ms-gold);
}
@media (max-width: 991px) {
  .ms-nav-social { justify-content: center; margin: 16px 0 0; }
}

/* ========================================
   GREEN WELDING FLAME CTA (meyerdefense style)
   ======================================== */
.ms-nav-cta-call,
.ms-nav-cta-consult {
  position: relative;
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  white-space: nowrap;
  z-index: 1;
  border-radius: 3px;
  background: #000;
  color: #fff;
  border: 1px solid var(--flame);
  box-shadow:
    0 0 6px rgba(0,255,102,0.8),
    0 0 22px rgba(0,255,102,0.5);
  overflow: visible;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Breathing halo aura (::before) */
.ms-nav-cta-call::before,
.ms-nav-cta-consult::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--flame);
  border-radius: 6px;
  box-shadow:
    0 0 14px rgba(0,255,102,0.85),
    0 0 35px rgba(0,255,102,0.6),
    0 0 60px rgba(0,255,102,0.3);
  filter: blur(4px);
  animation: flarePulse 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Orbiting spark dot (::after) */
.ms-nav-cta-call::after,
.ms-nav-cta-consult::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: #eafff5;
  border-radius: 50%;
  box-shadow:
    0 0 8px rgba(0,255,150,1),
    0 0 18px rgba(0,255,150,0.9);
  animation: sparkOrbit 4s linear infinite;
  pointer-events: none;
  z-index: 2;
}
.ms-nav-cta-consult::after {
  animation-delay: -2s;
}

.ms-nav-cta-call:hover,
.ms-nav-cta-consult:hover {
  background: var(--flame);
  color: #050505;
  box-shadow:
    0 0 12px rgba(0,255,102,1),
    0 0 40px rgba(0,255,102,0.9);
}

@keyframes flarePulse {
  0%   { opacity: 0.5; filter: blur(4px) brightness(1.6); }
  50%  { opacity: 1.0; filter: blur(6px) brightness(2.2); }
  100% { opacity: 0.6; filter: blur(5px) brightness(1.8); }
}

@keyframes sparkOrbit {
  0%   { top: -4px;  left: 10%;  opacity: 1; transform: scale(1); }
  25%  { top: -4px;  left: 90%;  opacity: 0.9; transform: scale(1.15); }
  50%  { top: calc(100% - 2px); left: 90%; opacity: 1; transform: scale(0.95); }
  75%  { top: calc(100% - 2px); left: 10%; opacity: 0.85; transform: scale(1.1); }
  100% { top: -4px;  left: 10%;  opacity: 1; transform: scale(1); }
}

/* Mobile CTA bar */
.ms-mobile-cta-call {
  background: var(--flame) !important;
  color: #050505 !important;
}
.ms-mobile-cta-consult {
  color: #fff !important;
  border-left: 1px solid var(--flame) !important;
  box-shadow: 0 0 12px rgba(0,255,102,0.5);
}
.ms-mobile-cta { border-top-color: var(--flame) !important; }

/* ========================================
   HERO OVERLAY - LIGHTER
   ======================================== */
.ms-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(17,17,17,0.65) 0%,
    rgba(26,26,26,0.45) 40%,
    rgba(45,45,45,0.25) 100%
  );
}

/* Hero slider structure */
.ms-hero {
  position: relative;
  width: 100%;
  height: clamp(500px, 85vh, 800px);
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
}
.ms-hero.ms-hero-has-slider::before { display: none; }
.ms-hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ms-hero-slider .swiper,
.ms-hero-slider .swiper-wrapper,
.ms-hero-slider .swiper-slide {
  width: 100%;
  height: 100%;
}
.ms-hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ms-hero .container { position: relative; z-index: 2; }
.ms-hero .swiper-pagination-bullet { background: rgba(255,255,255,0.4); opacity: 1; }
.ms-hero .swiper-pagination-bullet-active { background: var(--ms-gold); }

@media (max-width: 767px) {
  .ms-hero { height: clamp(400px, 75vh, 600px); }
}

/* ========================================
   ABOUT SECTION - NO BOLD, NO OVERSIZED TEXT
   ======================================== */
.ms-about-content h3 {
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ms-gold);
  margin-bottom: 10px;
}
.ms-about-content h2 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--ms-text-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}
.ms-about-content h2 span { color: var(--ms-gold); }
.ms-about-content p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #555;
}

/* ========================================
   STATS CARDS (light bg, current site style)
   ======================================== */
.ms-stats {
  background: #f8fafc !important;
  padding: 50px 0;
}
.ms-stats-heading { text-align: center; margin-bottom: 28px; }
.ms-stats-heading h2 {
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin-bottom: 8px;
}
.ms-stats-heading p {
  color: #4b5563 !important;
  font-size: 15px;
  max-width: 700px;
  margin: 0 auto;
}
.ms-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ms-stat-card {
  background: #ffffff !important;
  border-radius: 16px;
  padding: 20px 22px 22px;
  box-shadow: 0 10px 28px rgba(15,23,42,0.06);
  border: 1px solid rgba(200,164,90,0.12) !important;
  color: #111827 !important;
}
.ms-stat-card.ms-stat-green {
  background: #ecfdf3 !important;
  border: 1px solid #16a34a !important;
}
.ms-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: #6b7280; margin-bottom: 6px; }
.ms-stat-number { font-size: 34px; font-weight: 800; color: #111827; margin-bottom: 6px; line-height: 1.1; }
.ms-stat-card.ms-stat-green .ms-stat-number { color: #16a34a; }
.ms-stat-copy { font-size: 13px; color: #4b5563; line-height: 1.4; margin: 0; }

@media (max-width: 1199px) { .ms-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .ms-stats-grid { grid-template-columns: 1fr; } }

/* ========================================
   SERVICE CARDS - FIXED GRID + PROPER OVERLAY
   ======================================== */
.ms-svc-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}
.ms-svc-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
  margin-top: 24px !important;
}
.ms-svc-grid-1 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
  margin-top: 24px !important;
}

.ms-svc-card {
  position: relative !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 280px !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35) !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease !important;
  cursor: pointer;
}
.ms-svc-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 52px rgba(0,0,0,0.45) !important;
}

/* Dark gradient overlay on every card */
.ms-svc-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.30) 40%,
    rgba(0,0,0,0.70) 100%
  ) !important;
  z-index: 1 !important;
}

.ms-svc-card-body {
  position: relative !important;
  z-index: 2 !important;
  padding: 26px 24px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  min-height: 280px !important;
  height: 100% !important;
}

.ms-svc-card-body h3 {
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
}

.ms-svc-card-body p {
  color: rgba(255,255,255,0.88) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin-bottom: 16px !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5) !important;
  max-width: 560px;
}

.btn-svc {
  display: inline-block !important;
  align-self: flex-start !important;
  padding: 8px 20px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  border: 2px solid var(--ms-gold) !important;
  color: var(--ms-gold) !important;
  background: transparent !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}
.btn-svc:hover {
  background: var(--ms-gold) !important;
  color: #000 !important;
}

@media (max-width: 991px) {
  .ms-svc-grid-3 { grid-template-columns: 1fr !important; }
  .ms-svc-grid-2 { grid-template-columns: 1fr !important; }
}

/* ========================================
   INSURANCE - NO BOLD KEYWORDS
   ======================================== */
.ms-insurance-content h2 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #fff !important;
}
.ms-insurance-content p {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #ccc !important;
}
.ms-insurance-content p strong {
  font-weight: 500 !important;
  color: var(--ms-gold);
}
.ms-insurance-badges span {
  border: 1px solid var(--ms-gold) !important;
  color: #fff !important;
  background: rgba(200,164,90,0.12) !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
}

/* ========================================
   SECTION TITLES - NORMALIZED SIZE
   ======================================== */
.section-title h2,
.ms-faq h2,
.ms-reviews h2,
.ms-blog h2 {
  font-size: 22px !important;
  font-weight: 600 !important;
}

/* ========================================
   REVIEWS - ACTUAL REVIEW CARDS STYLING
   ======================================== */
.ms-review-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.ms-review-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.ms-review-card-stars {
  color: #facc15;
  font-size: 16px;
  margin-bottom: 10px;
}
.ms-review-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 12px;
  font-style: italic;
}
.ms-review-card-author {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}
.ms-review-card-source {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .ms-review-cards { grid-template-columns: 1fr; }
}

/* ========================================
   FOOTER GRID RESPONSIVE
   ======================================== */
.ms-footer {
  overflow-x: hidden !important;
}
.ms-footer .container {
  overflow: hidden;
}
.ms-footer-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-bottom: 30px !important;
}
.ms-footer-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px !important;
}
.ms-footer-grid > .ms-footer-col {
  width: 100% !important;
  max-width: 100% !important;
}
@media (max-width: 991px) {
  .ms-footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 575px) {
  .ms-footer-grid { grid-template-columns: 1fr !important; }
}

/* ========================================
   BLOG POSTS GRID FIX
   ======================================== */
.blog-posts-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

.post-item {
  background: var(--ms-black, #1A1A1A) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  transition: transform 0.3s ease, border-color 0.3s ease !important;
}
.post-item:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(200,164,90,0.3) !important;
}

.post-featured-image {
  overflow: hidden !important;
  height: 200px !important;
  display: block !important;
}
.post-featured-image a {
  display: block !important;
  height: 100% !important;
}
.post-featured-image img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.5s ease !important;
}
.post-item:hover .post-featured-image img {
  transform: scale(1.05) !important;
}

.post-item-content {
  padding: 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 12px !important;
}
.post-item-body h2 {
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}
.post-item-body h2 a {
  color: #fff !important;
  text-decoration: none !important;
}
.post-item-body h2 a:hover { color: var(--ms-gold, #C8A45A) !important; }

.post-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  background: var(--ms-slate, #2D2D2D) !important;
  color: var(--ms-gold, #C8A45A) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}
.post-btn:hover {
  background: var(--ms-gold, #C8A45A) !important;
  color: #000 !important;
}

.load-more-container {
  text-align: center !important;
  margin: 30px 0 0 !important;
}
.load-more-btn {
  background: transparent !important;
  border: 2px solid var(--ms-gold, #C8A45A) !important;
  color: var(--ms-gold, #C8A45A) !important;
  padding: 12px 30px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border-radius: 6px !important;
  font-family: inherit !important;
  transition: all 0.3s ease !important;
}
.load-more-btn:hover {
  background: var(--ms-gold, #C8A45A) !important;
  color: #000 !important;
}

@media (max-width: 991px) {
  .blog-posts-container { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 575px) {
  .blog-posts-container { grid-template-columns: 1fr !important; }
}

/* ========================================
   ABOUT SECTION - UNIFORM STYLING
   ======================================== */
.ms-about-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 40px !important;
  align-items: start !important;
}
@media (max-width: 991px) {
  .ms-about-grid { grid-template-columns: 1fr !important; }
}

.ms-about-image {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}
.ms-about-image img {
  width: 100% !important;
  height: 480px !important;
  object-fit: cover !important;
}
@media (max-width: 991px) {
  .ms-about-image img { height: 280px !important; }
}

.ms-about-content h3 {
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--ms-gold, #C8A45A) !important;
  margin-bottom: 10px !important;
}
.ms-about-content h2 {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 14px !important;
  line-height: 1.35 !important;
}
.ms-about-content h2 span { color: var(--ms-gold, #C8A45A) !important; }

.ms-about-content p {
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: #555 !important;
}

/* Quote box */
.ms-about-quote {
  display: inline-block !important;
  padding: 12px 18px !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #333 !important;
  font-style: normal !important;
  margin: 6px 0 16px !important;
}

/* Keyword badges - themed matching boxes */
.ms-about-badges {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  margin-top: 16px !important;
}
.ms-about-badges span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  background: var(--ms-slate, #2D2D2D) !important;
  color: var(--ms-gold, #C8A45A) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center !important;
  border: 1px solid rgba(200,164,90,0.2) !important;
  letter-spacing: 0.02em !important;
}
@media (max-width: 575px) {
  .ms-about-badges { grid-template-columns: 1fr !important; }
}

/* Inline media below about */
.ms-about-media {
  margin-top: 18px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}
.ms-about-media img {
  width: 100% !important;
  height: 170px !important;
  object-fit: cover !important;
}
.ms-about-media .cap {
  padding: 10px 14px !important;
  font-size: 13px !important;
  color: #555 !important;
  background: #fff !important;
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .ms-nav-cta-call::before, .ms-nav-cta-consult::before { animation: none; }
  .ms-nav-cta-call::after, .ms-nav-cta-consult::after { animation: none; display: none; }
}


/* ========================================
   ABOUT PAGE - CORPORATE LAYOUT
   ======================================== */

/* Remove constraints for about page */
.page-id-146 .ms-content { padding: 0; }
.page-id-146 .ms-content .container { max-width: none; padding: 0; }
.page-id-146 .ms-content .entry-content { max-width: none; }
.page-id-146 .ms-page-hero { display: none; }

/* Full-width section base */
.ms-abt-section {
  width: 100%;
  padding: 80px 0;
}
.ms-abt-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Dark sections */
.ms-abt-dark { background: var(--ms-dark); }
.ms-abt-slate { background: var(--ms-slate); }
.ms-abt-white { background: #fff; }
.ms-abt-offwhite { background: var(--ms-off-white); }

/* Page hero - custom for about */
.ms-abt-hero {
  background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #2d2d2d 100%);
  padding: 100px 0 80px;
  text-align: center;
}
.ms-abt-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.ms-abt-hero .ms-abt-hero-sub {
  color: var(--ms-gold);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: block;
}
.ms-abt-hero p {
  color: var(--ms-grey);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.ms-abt-hero .ms-abt-divider {
  width: 60px;
  height: 3px;
  background: var(--ms-gold);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* Two-column layout */
.ms-abt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.ms-abt-row.ms-abt-reverse { direction: rtl; }
.ms-abt-row.ms-abt-reverse > * { direction: ltr; }

@media (max-width: 991px) {
  .ms-abt-row,
  .ms-abt-row.ms-abt-reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    direction: ltr;
  }
}

/* Image styling */
.ms-abt-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.ms-abt-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  .ms-abt-img img { height: 280px; }
}

/* Text content */
.ms-abt-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ms-gold);
  margin-bottom: 10px;
}
.ms-abt-dark .ms-abt-label,
.ms-abt-slate .ms-abt-label { color: var(--ms-gold); }

.ms-abt-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--ms-text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.ms-abt-dark .ms-abt-title,
.ms-abt-slate .ms-abt-title { color: #fff; }
.ms-abt-title span { color: var(--ms-gold); }

.ms-abt-text {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 16px;
}
.ms-abt-dark .ms-abt-text,
.ms-abt-slate .ms-abt-text { color: #b0b0b0; }

/* Values list */
.ms-abt-values {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.ms-abt-values li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}
.ms-abt-dark .ms-abt-values li,
.ms-abt-slate .ms-abt-values li { color: #b0b0b0; }

.ms-abt-values li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  background: var(--ms-gold);
  border-radius: 50%;
}

/* Mission/Vision/Values cards */
.ms-abt-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 767px) {
  .ms-abt-cards { grid-template-columns: 1fr; }
}

.ms-abt-card {
  background: var(--ms-slate);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(200,164,90,0.12);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.ms-abt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,164,90,0.35);
}
.ms-abt-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: rgba(200,164,90,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--ms-gold);
}
.ms-abt-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ms-abt-card p {
  font-size: 14px;
  line-height: 1.65;
  color: #999;
  margin: 0;
}

/* Stats bar */
.ms-abt-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--ms-dark);
}
.ms-abt-stat {
  padding: 36px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.ms-abt-stat:last-child { border-right: none; }
.ms-abt-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--ms-gold);
  line-height: 1.1;
  margin-bottom: 6px;
}
.ms-abt-stat-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 767px) {
  .ms-abt-stats { grid-template-columns: repeat(2, 1fr); }
  .ms-abt-stat:nth-child(2) { border-right: none; }
}

/* CTA banner */
.ms-abt-cta {
  background: linear-gradient(135deg, var(--ms-dark) 0%, var(--ms-slate) 100%);
  padding: 60px 0;
  text-align: center;
}
.ms-abt-cta h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 12px;
}
.ms-abt-cta p {
  color: #999;
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.ms-abt-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 4px;
  background: #000;
  color: #fff;
  border: 1px solid var(--flame, #00ff66);
  box-shadow:
    0 0 6px rgba(0,255,102,0.8),
    0 0 22px rgba(0,255,102,0.5);
  transition: background 0.25s ease, color 0.25s ease;
}
.ms-abt-cta-btn:hover {
  background: var(--flame, #00ff66);
  color: #050505;
  box-shadow:
    0 0 12px rgba(0,255,102,1),
    0 0 40px rgba(0,255,102,0.9);
}

/* FAQ section on about */
.ms-abt-faq {
  background: #fff;
  padding: 80px 0;
}
.ms-abt-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 991px) {
  .ms-abt-faq-grid { grid-template-columns: 1fr; }
}
.ms-abt-faq-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.ms-abt-faq-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  .ms-abt-faq-img img { height: 220px; }
}

/* FAQ accordion */
.ms-abt-accordion { margin-top: 10px; }
.ms-abt-acc-item {
  border-bottom: 1px solid #e5e7eb;
}
.ms-abt-acc-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--ms-text-dark);
  font-family: inherit;
  line-height: 1.4;
}
.ms-abt-acc-btn::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--ms-gold);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s ease;
}
.ms-abt-acc-item.active .ms-abt-acc-btn::after {
  content: "\2212";
}
.ms-abt-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.ms-abt-acc-item.active .ms-abt-acc-body {
  max-height: 200px;
}
.ms-abt-acc-body p {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* Dual photo row */
.ms-abt-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 575px) {
  .ms-abt-photos { grid-template-columns: 1fr; }
}
.ms-abt-photos img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Section spacing adjustments */
.ms-abt-section + .ms-abt-section { margin-top: 0; }
.ms-abt-section:first-child { margin-top: 0; }

@media (max-width: 767px) {
  .ms-abt-section { padding: 50px 0; }
  .ms-abt-hero { padding: 60px 0 50px; }
  .ms-abt-stats .ms-abt-stat { padding: 24px 16px; }
  .ms-abt-stat-num { font-size: 28px; }
}


/* Photo caption */
.ms-abt-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: #888;
  font-style: italic;
  background: #f8f8f8;
  border-top: 1px solid #eee;
  line-height: 1.5;
}
.ms-abt-dark .ms-abt-caption {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #777;
}


/* ========================================
   ABOUT PAGE - TEXT VISIBILITY FIX
   All text on dark backgrounds must be white/light
   ======================================== */

/* Hero subtitle paragraph */
.ms-abt-hero p {
  color: rgba(255,255,255,0.85) !important;
}

/* Stats bar labels */
.ms-abt-stat-label {
  color: rgba(255,255,255,0.75) !important;
}

/* All text in dark/slate sections */
.ms-abt-dark .ms-abt-text,
.ms-abt-slate .ms-abt-text {
  color: rgba(255,255,255,0.85) !important;
}
.ms-abt-dark .ms-abt-values li,
.ms-abt-slate .ms-abt-values li {
  color: rgba(255,255,255,0.85) !important;
}
.ms-abt-dark p,
.ms-abt-slate p {
  color: rgba(255,255,255,0.85) !important;
}

/* Card text on dark bg */
.ms-abt-card p {
  color: rgba(255,255,255,0.75) !important;
}

/* CTA section text */
.ms-abt-cta p {
  color: rgba(255,255,255,0.8) !important;
}

/* Caption on dark bg */
.ms-abt-dark .ms-abt-caption {
  color: rgba(255,255,255,0.65) !important;
}


/* ========================================
   ABOUT PAGE - KILL ALL GREY TEXT ON DARK BG
   Every dark section: white text, no exceptions
   ======================================== */

/* Global: any text inside dark/slate sections = white */
.ms-abt-dark *,
.ms-abt-slate *,
.ms-abt-hero *,
.ms-abt-stats *,
.ms-abt-cta * {
  color: #fff !important;
}

/* Gold elements stay gold */
.ms-abt-dark .ms-abt-label,
.ms-abt-slate .ms-abt-label,
.ms-abt-hero .ms-abt-hero-sub,
.ms-abt-dark .ms-abt-title span,
.ms-abt-slate .ms-abt-title span,
.ms-abt-cta .ms-abt-cta-btn,
.ms-abt-stat-num {
  color: var(--ms-gold) !important;
}

/* Card icon SVGs stay gold */
.ms-abt-card-icon,
.ms-abt-card-icon svg {
  color: var(--ms-gold) !important;
}

/* Value bullet dots stay gold */
.ms-abt-dark .ms-abt-values li::before,
.ms-abt-slate .ms-abt-values li::before {
  background: var(--ms-gold) !important;
}

/* CTA button text */
.ms-abt-cta-btn {
  color: #fff !important;
}
.ms-abt-cta-btn:hover {
  color: #050505 !important;
}

/* Caption on dark */
.ms-abt-dark .ms-abt-caption {
  color: rgba(255,255,255,0.7) !important;
}


/* ========================================
   FOOTER - WHITE TEXT FIX (no grey on dark)
   ======================================== */
.ms-footer-col ul li a {
  color: rgba(255,255,255,0.85) !important;
}
.ms-footer-col ul li a:hover {
  color: var(--ms-gold) !important;
}
.ms-footer-disclaimer p {
  color: rgba(255,255,255,0.75) !important;
}
.ms-footer-copyright p {
  color: rgba(255,255,255,0.75) !important;
}
.ms-footer-social a {
  color: #fff !important;
  border-color: rgba(255,255,255,0.4) !important;
}
.ms-footer-social a:hover {
  color: var(--ms-gold) !important;
  border-color: var(--ms-gold) !important;
}




/* ========================================
   ETHICS PAGE - FULL WIDTH LAYOUT
   ======================================== */
.page-id-2758 .ms-content { padding: 0; }
.page-id-2758 .ms-content .container { max-width: none; padding: 0; }
.page-id-2758 .ms-content .entry-content { max-width: none; }
.page-id-2758 .ms-page-hero { display: none; }

/* Ethics principle cards */
.ms-ethics-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.ms-ethics-principles.ms-ethics-2col {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 991px) {
  .ms-ethics-principles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .ms-ethics-principles,
  .ms-ethics-principles.ms-ethics-2col { grid-template-columns: 1fr; }
}

.ms-ethics-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 22px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.ms-ethics-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,164,90,0.4);
}
.ms-ethics-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(200,164,90,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ms-gold, #C8A45A);
  margin-bottom: 16px;
}
.ms-ethics-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ms-ethics-card p {
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  margin: 0;
}

/* Dark section card variants */
.ms-abt-dark .ms-ethics-card {
  background: var(--ms-slate, #2D2D2D);
  border-color: rgba(200,164,90,0.12);
}
.ms-abt-dark .ms-ethics-card h3 { color: #fff; }
.ms-abt-dark .ms-ethics-card p { color: rgba(255,255,255,0.8); }
.ms-abt-dark .ms-ethics-card-icon { background: rgba(200,164,90,0.15); }

/* ========================================
   LICENSE SECTION
   ======================================== */
.ms-license-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  margin-top: 30px;
  align-items: start;
}
@media (max-width: 767px) {
  .ms-license-block { grid-template-columns: 1fr; }
}

.ms-license-doc { text-align: center; }
.ms-license-doc a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 20px;
  background: var(--ms-slate, #2D2D2D);
  border: 1px solid rgba(200,164,90,0.2);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.ms-license-doc a:hover {
  border-color: var(--ms-gold, #C8A45A);
  transform: translateY(-2px);
}
.ms-license-pdf-icon { font-size: 48px; color: #dc2626; }
.ms-license-doc span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ms-gold, #C8A45A);
}

.ms-license-details h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.ms-license-details h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ms-gold, #C8A45A);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 24px 0 12px;
}

/* License grid - 5 even columns, single row */
.ms-license-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 14px !important;
}
.ms-license-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px 16px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ms-license-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.ms-license-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.ms-license-value.ms-license-active { color: #22c55e; }

@media (max-width: 991px) {
  .ms-license-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 575px) {
  .ms-license-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

.ms-license-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ms-license-services span {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(200,164,90,0.1);
  border: 1px solid rgba(200,164,90,0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ms-gold, #C8A45A);
}

.ms-license-verify { margin-top: 20px; }
.ms-license-verify a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid var(--ms-gold, #C8A45A);
  border-radius: 6px;
  color: var(--ms-gold, #C8A45A);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.ms-license-verify a:hover {
  background: var(--ms-gold, #C8A45A);
  color: #000;
}

/* ========================================
   PARALLAX IMAGE BREAKS
   ======================================== */
.ms-parallax-break {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 767px) {
  .ms-parallax-break { background-attachment: scroll; height: 260px; }
}
.ms-parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,17,17,0.75) 0%, rgba(45,45,45,0.55) 100%);
  z-index: 1;
}
.ms-parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}
.ms-parallax-content span {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  display: block;
}

/* ========================================
   WOW FADE-IN ANIMATION
   ======================================== */
.ms-wow-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.ms-wow-fade.ms-visible {
  opacity: 1;
  transform: translateY(0);
}
.ms-ethics-principles.ms-visible .ms-ethics-card {
  opacity: 0;
  transform: translateY(20px);
  animation: msCardFadeIn 0.6s ease-out forwards;
}
.ms-ethics-principles.ms-visible .ms-ethics-card:nth-child(1) { animation-delay: 0.1s; }
.ms-ethics-principles.ms-visible .ms-ethics-card:nth-child(2) { animation-delay: 0.2s; }
.ms-ethics-principles.ms-visible .ms-ethics-card:nth-child(3) { animation-delay: 0.3s; }
.ms-ethics-principles.ms-visible .ms-ethics-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes msCardFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ms-wow-fade { opacity: 1; transform: none; transition: none; }
  .ms-ethics-principles.ms-visible .ms-ethics-card { opacity: 1; transform: none; animation: none; }
  .ms-parallax-break { background-attachment: scroll; }
}


/* License image thumbnail + View License button */
.ms-license-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(200,164,90,0.25);
  display: block;
}
.ms-license-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  background: transparent;
  border: 2px solid var(--ms-gold, #C8A45A);
  border-radius: 6px;
  color: var(--ms-gold, #C8A45A) !important;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
}
.ms-license-doc a:hover .ms-license-btn {
  background: var(--ms-gold, #C8A45A);
  color: #000 !important;
}


/* ========================================
   MISSION & VISION PAGE - FULL WIDTH LAYOUT
   ======================================== */
.page-id-2764 .ms-content { padding: 0; }
.page-id-2764 .ms-content .container { max-width: none; padding: 0; }
.page-id-2764 .ms-content .entry-content { max-width: none; }
.page-id-2764 .ms-page-hero { display: none; }

/* Mission/Vision text column */
.ms-mv-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mission/Vision image with parallax-like depth */
.ms-mv-img {
  position: relative;
}
.ms-mv-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
@media (max-width: 767px) {
  .ms-mv-img img { height: 300px; }
}


/* ========================================
   MISSION/VISION - VALUE CARDS CONTRAST FIX
   Cards on white section with slate bg need
   high-contrast text
   ======================================== */
.page-id-2764 .ms-abt-card h3 {
  color: var(--ms-gold, #C8A45A) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}
.page-id-2764 .ms-abt-card p {
  color: rgba(255,255,255,0.92) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}
.page-id-2764 .ms-abt-card-icon {
  color: var(--ms-gold, #C8A45A) !important;
}
.page-id-2764 .ms-abt-card-icon svg {
  color: var(--ms-gold, #C8A45A) !important;
  stroke: var(--ms-gold, #C8A45A) !important;
}


/* ========================================
   MISSION/VISION - PARALLAX & IMAGE POSITION
   Show agents' faces (top of photo)
   ======================================== */
.page-id-2764 .ms-parallax-break {
  background-position: top center !important;
}
.page-id-2764 .ms-mv-img img {
  object-position: top center !important;
}


/* ========================================
   CONSTRUCTION PAGE (1518) - FULL WIDTH
   ======================================== */
.page-id-1518 .ms-content { padding: 0; }
.page-id-1518 .ms-content .container { max-width: none; padding: 0; }
.page-id-1518 .ms-content .entry-content { max-width: none; }
.page-id-1518 .ms-page-hero { display: none; }

/* Construction hero text */
.cs-hero-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ms-gold, #C8A45A);
  margin-bottom: 12px;
  display: block;
}
.cs-hero-h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.cs-hero-sub {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* In-page nav */
.cs-nav {
  background: var(--ms-dark, #111);
  padding: 14px 0;
  border-bottom: 1px solid rgba(200,164,90,0.15);
}
.cs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
}
.cs-nav a {
  color: var(--ms-gold, #C8A45A);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.cs-nav a:hover { color: #fff; }

/* Section spacing */
.cs-section {
  width: 100%;
  padding: 80px 0;
}
.cs-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.cs-white { background: #fff; }
.cs-offwhite { background: #f8fafc; }
.cs-dark { background: var(--ms-dark, #111); }
.cs-slate { background: var(--ms-slate, #2D2D2D); }

/* Two-column row */
.cs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 991px) {
  .cs-row { grid-template-columns: 1fr; gap: 30px; }
}

/* Image styling */
.cs-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.cs-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  .cs-img img { height: 280px; }
}

/* Typography */
.cs-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ms-gold, #C8A45A);
  margin-bottom: 10px;
}
.cs-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--ms-text-dark, #1a1a1a);
  margin-bottom: 16px;
  line-height: 1.3;
}
.cs-title span { color: var(--ms-gold, #C8A45A); }
.cs-dark .cs-title,
.cs-slate .cs-title { color: #fff; }
.cs-text {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 16px;
}
.cs-dark .cs-text,
.cs-slate .cs-text { color: rgba(255,255,255,0.85); }

/* Pillar cards */
.cs-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 991px) {
  .cs-pillars-grid { grid-template-columns: 1fr; }
}
.cs-pillar-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.cs-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(0,0,0,0.45);
}
.cs-pillar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}
.cs-pillar-body {
  position: relative;
  z-index: 2;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  height: 100%;
}
.cs-pillar-body h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.cs-pillar-body p {
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Insurance / certification differentiator */
.cs-differ-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
@media (max-width: 767px) {
  .cs-differ-grid { grid-template-columns: 1fr; }
}
.cs-differ-card {
  background: var(--ms-slate, #2D2D2D);
  border: 1px solid rgba(200,164,90,0.12);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.cs-differ-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,164,90,0.35);
}
.cs-differ-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: rgba(200,164,90,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--ms-gold, #C8A45A);
}
.cs-differ-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ms-gold, #C8A45A);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cs-differ-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

/* Metrics counters */
.cs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}
@media (max-width: 767px) {
  .cs-metrics-grid { grid-template-columns: 1fr; }
}
.cs-metric-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 10px 28px rgba(15,23,42,0.06);
  border: 1px solid rgba(200,164,90,0.12);
}
.cs-metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280;
  margin-bottom: 6px;
}
.cs-metric-number {
  font-size: 34px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.1;
}
.cs-metric-note {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
  margin: 0;
}

/* Client logos */
.cs-logos-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid #e1e1e4;
  border-bottom: 1px solid #e1e1e4;
  margin-top: 30px;
}
@media (max-width: 767px) {
  .cs-logos-row { grid-template-columns: repeat(2, 1fr); }
}
.cs-logo-box {
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e1e1e4;
}
.cs-logo-box:last-child { border-right: none; }
@media (max-width: 767px) {
  .cs-logo-box:nth-child(even) { border-right: none; }
}
.cs-logo-box img {
  max-height: 54px;
  width: auto;
  display: inline-block;
}

/* Partners row */
.cs-partners-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid #e1e1e4;
  border-bottom: 1px solid #e1e1e4;
  margin-top: 30px;
}
@media (max-width: 991px) {
  .cs-partners-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  .cs-partners-row { grid-template-columns: repeat(2, 1fr); }
}
.cs-partner-box {
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e1e1e4;
}
.cs-partner-box:last-child { border-right: none; }
.cs-partner-box img {
  max-height: 54px;
  width: auto;
  display: inline-block;
}

/* Related services cards on bg image */
.cs-related-bg {
  position: relative;
  background-image: url('https://www.mayersecurity.com/wp-content/uploads/2025/09/truckyard-security-scaled.jpg');
  background-size: cover;
  background-position: center;
}
.cs-related-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.45));
  padding: 80px 0 70px;
}
.cs-related-card {
  background: rgba(0,0,0,0.72);
  border-radius: 16px;
  padding: 28px 24px;
  color: #fff;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  transition: transform 0.3s ease;
}
.cs-related-card:hover { transform: translateY(-4px); }
.cs-related-card h3 {
  color: var(--ms-gold, #C8A45A);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.cs-related-card p {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* FAQ two-column */
.cs-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 991px) {
  .cs-faq-grid { grid-template-columns: 1fr; }
}
.cs-faq-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.cs-faq-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  .cs-faq-img img { height: 220px; }
}

/* Accordion items */
.cs-accordion { margin-top: 10px; }
.cs-acc-item {
  border-bottom: 1px solid #e5e7eb;
}
.cs-acc-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--ms-text-dark, #1a1a1a);
  font-family: inherit;
  line-height: 1.4;
}
.cs-acc-btn::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--ms-gold, #C8A45A);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s ease;
}
.cs-acc-item.active .cs-acc-btn::after {
  content: "\2212";
}
.cs-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.cs-acc-item.active .cs-acc-body {
  max-height: 300px;
}
.cs-acc-body p {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* Back to top */
.cs-top-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--ms-gold, #C8A45A);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.cs-top-link:hover { text-decoration: underline; }


/* ========================================
   CONSTRUCTION PAGE - LOGO SIZE FIX
   All logos same height, centered, proportional
   ======================================== */
.cs-logo-box {
  height: 100px;
}
.cs-logo-box img {
  max-height: 60px !important;
  height: 60px !important;
  width: auto !important;
  object-fit: contain !important;
}
.cs-partner-box {
  height: 100px;
}
.cs-partner-box img {
  max-height: 56px !important;
  height: 56px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* ========================================
   CONSTRUCTION PAGE - KILL ALL GREY TEXT
   White text on any dark background, no exceptions
   ======================================== */
.cs-dark *,
.cs-slate *,
.cs-related-overlay * {
  color: #fff !important;
}
/* Gold elements stay gold */
.cs-dark .cs-label,
.cs-dark .cs-title span,
.cs-dark .cs-differ-card h3,
.cs-dark .cs-differ-icon,
.cs-dark .cs-differ-icon svg,
.cs-related-overlay .cs-label,
.cs-related-overlay .cs-title span,
.cs-related-card h3 {
  color: var(--ms-gold, #C8A45A) !important;
}
/* CTA button stays styled */
.cs-dark .ms-abt-cta-btn,
.cs-related-overlay .btn-svc {
  color: var(--ms-gold, #C8A45A) !important;
  border-color: var(--ms-gold, #C8A45A) !important;
}
.cs-dark .ms-abt-cta-btn:hover,
.cs-related-overlay .btn-svc:hover {
  color: #000 !important;
  background: var(--ms-gold, #C8A45A) !important;
}
/* SVG strokes stay gold */
.cs-differ-icon svg {
  stroke: var(--ms-gold, #C8A45A) !important;
}
/* Hero text - pure white, no grey */
.cs-hero-sub {
  color: #fff !important;
}
/* Metric card text stays dark (white bg cards) */
.cs-metric-card,
.cs-metric-card * {
  color: inherit;
}
.cs-metric-label { color: #6b7280 !important; }
.cs-metric-number { color: #111827 !important; }
.cs-metric-note { color: #4b5563 !important; }


/* ========================================
   CONSTRUCTION PAGE - CRITICAL FIXES
   ======================================== */

/* Force 3-col grid on pillar cards */
.page-id-1518 .cs-pillars-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}
@media (max-width: 991px) {
  .page-id-1518 .cs-pillars-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Much darker overlay on pillar cards so text is readable */
.cs-pillar-card::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.85) 100%) !important;
}

/* Hero text - pure white, heavy text-shadow, NO GREY */
.page-id-1518 .ms-hero .container * {
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.6) !important;
}
.page-id-1518 .ms-hero .ms-abt-cta-btn {
  text-shadow: none !important;
}

/* Darker hero overlay so all text pops */
.page-id-1518 .ms-hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.40) 100%
  ) !important;
}

/* Related services section - white text, no grey */
.cs-related-overlay p,
.cs-related-overlay h2,
.cs-related-overlay .cs-text {
  color: #fff !important;
}
.cs-related-card p {
  color: #fff !important;
}

/* Fix entry-content overriding our styles */
.page-id-1518 .ms-content .entry-content p {
  color: inherit;
}
.page-id-1518 .ms-content .entry-content h2 {
  margin-top: 0;
}
.page-id-1518 .ms-content .entry-content h3 {
  margin-top: 0;
}


/* ========================================
   CONSTRUCTION PAGE - FULL BLEED FIX
   Hero and full-width sections must break
   out of the page.php container wrapper
   ======================================== */

/* The hero container inside needs to stay normal width */
.page-id-1518 .ms-hero .container {
  max-width: 1140px !important;
  padding: 0 20px !important;
  margin: 0 auto !important;
}

/* The ms-stats container needs normal width too */
.page-id-1518 .ms-stats .container {
  max-width: 1140px !important;
  padding: 0 20px !important;
  margin: 0 auto !important;
}

/* Full-bleed sections break out of parent container */
.page-id-1518 .ms-hero,
.page-id-1518 .ms-stats,
.page-id-1518 .cs-related-bg,
.page-id-1518 .cs-nav {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* Sections using cs-container also need full bleed */
.page-id-1518 .cs-section {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* Accreditations carousel section needs full bleed too */
.page-id-1518 .ms-accreditations {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* Kill any overflow hidden on parents that would clip the bleed */
.page-id-1518 .ms-content,
.page-id-1518 .ms-content .container,
.page-id-1518 .ms-content .entry-content,
.page-id-1518 .ms-content article {
  overflow: visible !important;
}

/* ========================================
   LEGACY BUTTON CLASSES (used by custom pages)
   ======================================== */
.btn-default {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--ms-radius);
  border: 2px solid var(--ms-gold);
  color: var(--ms-gold);
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-default:hover {
  background: var(--ms-gold);
  color: #000;
}
.btn-default.btn-highlighted {
  background: var(--ms-gold);
  color: #000;
  border-color: var(--ms-gold);
}
.btn-default.btn-highlighted:hover {
  background: var(--ms-gold-light);
  border-color: var(--ms-gold-light);
}

/* Service card button override */
.sl-service-card-inner .btn-default,
.ms-svc-card .btn-default {
  color: #fff;
  border-color: #fff;
}
.sl-service-card-inner .btn-default:hover,
.ms-svc-card .btn-default:hover {
  background: #fff;
  color: #000;
}

/* ========================================
   FIX: No grey text on hero or footer
   All text bright and visible site-wide
   ======================================== */

/* Page hero subtitle - white not grey */
.ms-page-hero p {
  color: #fff !important;
}

/* Footer text - bright and readable */
.ms-footer,
.ms-footer p,
.ms-footer li,
.ms-footer .ms-footer-col p,
.ms-footer .ms-footer-disclaimer p,
.ms-footer .ms-footer-copyright p {
  color: #d0d0d0 !important;
}
.ms-footer a {
  color: #e0e0e0 !important;
}
.ms-footer a:hover {
  color: var(--ms-gold) !important;
}
.ms-footer h3 {
  color: #fff !important;
}
.ms-footer .ms-footer-copyright p {
  color: #b0b0b0 !important;
}

/* Sugar Land hero text - no grey */
.sl-hero-sub,
.sl-hero-entity {
  color: #fff !important;
}

/* All custom page hero text - bright */
.ms-private-hero .hero-content p,
.ms-private-hero .hero-content h4,
.hero-content-body p,
.section-title.dark-section p,
.section-title.dark-section h3,
.section-title.dark-section h4 {
  color: #e5e8f0 !important;
}

/* ========================================
   CONTACT FORM - MOBILE FIX
   ======================================== */
.page-id-371 .wpcf7 {
  padding-bottom: 20px;
}
.page-id-371 .wpcf7 .btn-default {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  padding: 16px 24px;
  font-size: 16px;
}
@media (max-width: 767px) {
  .page-id-371 .wpcf7 {
    padding-bottom: 70px;
  }
  .page-id-371 .wpcf7 .btn-default {
    position: relative;
    z-index: 10;
    padding: 18px 24px;
    font-size: 18px;
  }
}
