/* ===================================================
   M&L Business Services LLC - Modern Professional Theme
   Wide Container & Clean Card Grid System
   =================================================== */

:root {
  --mlb-navy: #0B132B;
  --mlb-slate: #1C2541;
  --mlb-blue: #2563EB;
  --mlb-blue-hover: #1D4ED8;
  --mlb-cyan: #06D6A0;
  --mlb-light: #F8FAFC;
  --mlb-border: #E2E8F0;
  --mlb-text: #334155;
  --mlb-heading: #0F172A;
  --mlb-muted: #64748B;
}

/* Break out of Twenty Twenty-Five narrow content wrapper */
.wp-site-blocks,
main,
.entry-content,
.wp-block-post-content,
:where(.wp-site-blocks) > :not(.alignleft):not(.alignright):not(.alignfull) {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: var(--mlb-text) !important;
  line-height: 1.65 !important;
  background-color: #F8FAFC !important;
  -webkit-font-smoothing: antialiased;
}

/* Wide Container for all sections */
.mlb-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Bar */
header.wp-block-template-part {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--mlb-border) !important;
  padding: 16px 0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

header a, header .wp-block-site-title a {
  color: var(--mlb-navy) !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
  text-decoration: none !important;
}

/* Hero Section */
.mlb-hero-section {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  padding: 90px 56px;
  margin-top: 24px;
  margin-bottom: 56px;
  box-shadow: 0 20px 48px rgba(11, 19, 43, 0.18);
}

.mlb-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(11, 19, 43, 0.94) 0%, rgba(28, 37, 65, 0.85) 100%);
  z-index: 1;
}

.mlb-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.mlb-badge {
  display: inline-block;
  background: rgba(6, 214, 160, 0.15);
  color: #06D6A0;
  border: 1px solid rgba(6, 214, 160, 0.4);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.mlb-hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.mlb-hero-subtitle {
  font-size: 1.25rem;
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Buttons */
.mlb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.mlb-btn-primary {
  background: var(--mlb-blue) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.mlb-btn-primary:hover {
  background: var(--mlb-blue-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.mlb-btn-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  margin-left: 14px;
}

.mlb-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-2px);
}

/* Clean Unified 4-Column Service Grid */
.mlb-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.mlb-service-card {
  background: #FFFFFF;
  border: 1px solid var(--mlb-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.mlb-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border-color: #CBD5E1;
}

.mlb-service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.mlb-service-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mlb-service-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--mlb-blue);
  margin-bottom: 8px;
}

.mlb-service-body h3 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--mlb-heading) !important;
  margin-bottom: 10px !important;
  line-height: 1.35 !important;
}

.mlb-service-body p {
  font-size: 0.94rem !important;
  color: var(--mlb-muted) !important;
  line-height: 1.55 !important;
  margin-bottom: 0 !important;
}

/* Full-Width Featured Partner Banner */
.mlb-featured-banner {
  background: linear-gradient(135deg, var(--mlb-navy) 0%, var(--mlb-slate) 100%);
  border-radius: 18px;
  padding: 44px 48px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 12px 36px rgba(11, 19, 43, 0.14);
}

.mlb-featured-text h3 {
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin-bottom: 12px !important;
  line-height: 1.25 !important;
}

.mlb-featured-text p {
  color: #CBD5E1 !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

.mlb-featured-cta {
  text-align: right;
}

/* Bottom 2-Column Info & Contact Grid */
.mlb-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 60px;
}

.mlb-info-box {
  background: #FFFFFF;
  border: 1px solid var(--mlb-border);
  border-radius: 16px;
  padding: 36px 34px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.mlb-info-box h3 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--mlb-heading) !important;
  margin-bottom: 16px !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mlb-info-box p {
  color: var(--mlb-muted) !important;
  font-size: 0.98rem !important;
  line-height: 1.6 !important;
  margin-bottom: 12px !important;
}

.mlb-info-box a {
  color: var(--mlb-blue) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.mlb-info-box a:hover {
  text-decoration: underline !important;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .mlb-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .mlb-hero-section {
    padding: 56px 28px;
  }
  .mlb-featured-banner {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }
  .mlb-featured-cta {
    text-align: left;
  }
  .mlb-btn-secondary {
    margin-left: 0;
    margin-top: 12px;
  }
  .mlb-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .mlb-services-grid {
    grid-template-columns: 1fr;
  }
  .mlb-hero-title {
    font-size: 2.1rem;
  }
}

/* ===================================================
   Clean Modern Contact Form (Matching OneStop style)
   =================================================== */

.mlb-form-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--mlb-border);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.mlb-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mlb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .mlb-form-row {
    grid-template-columns: 1fr;
  }
}

.mlb-form-group {
  display: flex;
  flex-direction: column;
}

.mlb-input,
.mlb-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--mlb-text);
  background-color: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.mlb-input:focus,
.mlb-textarea:focus {
  outline: none;
  border-color: var(--mlb-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

/* Honeypot field hidden completely */
.mlb-hp-field {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

.mlb-submit-btn {
  background: var(--mlb-blue) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mlb-submit-btn:hover {
  background: var(--mlb-blue-hover) !important;
  transform: translateY(-1px);
}

.mlb-form-status {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
  margin-top: 10px;
}

.mlb-form-status.success {
  display: block;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.mlb-form-status.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Fix Gutenberg alignfull blowout & negative margins */
.entry-content > .alignfull,
.wp-block-post-content > .alignfull {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Ensure cover inner container has proper breathing room and alignment */
.wp-block-cover__inner-container {
  width: 100% !important;
  max-width: 1240px !important;
  box-sizing: border-box !important;
}
