/*
Theme Name: Avada Child MKLaw
Template: Avada
Version: 1.0
Description: Child theme for Mehnaz Khan Law redesign
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@400;500;600&display=swap');

/* ============================================
   GLOBAL RESETS & BASE
   ============================================ */
body {
  font-family: 'Inter', sans-serif !important;
  color: #1A1A2E;
  background: #FFFFFF;
}

h1, h2, h3, h4, h5, h6,
.fusion-title .title-heading-left,
.fusion-title .title-heading-center,
.entry-title,
.post-title {
  font-family: 'Playfair Display', serif !important;
  color: #304050 !important;
}

/* ============================================
   HEADER
   ============================================ */
#wrapper .fusion-header-wrapper {
  background: #304050 !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15) !important;
}

#wrapper .fusion-logo a img {
  max-height: 55px !important;
}

#wrapper .fusion-main-menu > ul > li > a,
#wrapper .fusion-secondary-menu > ul > li > a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  color: #FFFFFF !important;
  letter-spacing: 0.03em;
}

#wrapper .fusion-main-menu > ul > li > a:hover,
#wrapper .fusion-main-menu > ul > li.current-menu-item > a {
  color: #C9973A !important;
}

#wrapper .fusion-main-menu .sub-menu {
  background: #304050 !important;
  border-top: 3px solid #C9973A !important;
}

#wrapper .fusion-main-menu .sub-menu li a {
  font-size: 13px !important;
  color: #E2DDD5 !important;
}

#wrapper .fusion-main-menu .sub-menu li a:hover {
  color: #C9973A !important;
  background: rgba(201,151,58,0.08) !important;
}

/* Force secondary header visible — Avada generates display:none when it reads stale cached options */
body #wrapper .fusion-secondary-header {
  display: block !important;
}

.fusion-secondary-header .fusion-contact-info,
.fusion-secondary-header {
  background: #253040 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #a8c4be !important;
}

/* ============================================
   STICKY HEADER
   ============================================ */
.fusion-is-sticky #wrapper .fusion-header-wrapper {
  background: #304050 !important;
}

/* ============================================
   BUTTONS (global)
   ============================================ */
.fusion-button,
.button,
input[type="submit"],
.fusion-btn {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  border-radius: 4px !important;
  transition: all 0.25s ease !important;
}

.fusion-button.button-default,
.fusion-button-default {
  background: #C9973A !important;
  color: #FFFFFF !important;
  border-color: #C9973A !important;
  padding: 14px 32px !important;
}

.fusion-button.button-default:hover,
.fusion-button-default:hover {
  background: #304050 !important;
  border-color: #304050 !important;
  color: #FFFFFF !important;
}

/* ============================================
   PAGE TITLES (breadcrumb bars)
   ============================================ */
#wrapper .fusion-page-title-bar {
  background: #304050 !important;
  padding: 40px 0 !important;
}

#wrapper .fusion-page-title-bar h1 {
  font-family: 'Playfair Display', serif !important;
  font-size: 36px !important;
  color: #FFFFFF !important;
}

#wrapper .fusion-page-title-bar .fusion-breadcrumbs,
#wrapper .fusion-page-title-bar .fusion-breadcrumbs a {
  color: #C9973A !important;
}

/* ============================================
   HERO SECTION (homepage)
   ============================================ */
.mklaw-hero {
  background: linear-gradient(135deg, #304050 60%, #3d5060 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}



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

.mklaw-hero h1 {
  font-family: 'Playfair Display', serif !important;
  font-size: 48px !important;
  color: #FFFFFF !important;
  line-height: 1.2 !important;
  margin-bottom: 20px !important;
}

.mklaw-hero h1 em {
  color: #C9973A;
  font-style: normal;
}

.mklaw-hero .hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: #B0BAD4;
  line-height: 1.7;
  margin-bottom: 32px;
}

.mklaw-hero .hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.mklaw-hero .btn-primary {
  background: #C9973A;
  color: #FFFFFF;
  padding: 15px 34px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.mklaw-hero .btn-primary:hover { background: #b08030; color: #fff; }

.mklaw-hero .btn-secondary {
  border: 2px solid rgba(255,255,255,0.4);
  color: #FFFFFF;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.mklaw-hero .btn-secondary:hover {
  border-color: #C9973A;
  color: #C9973A;
}

.mklaw-hero .hero-langs {
  margin-top: 28px;
  font-size: 13px;
  color: #8899BB;
}

.mklaw-hero .hero-langs span {
  color: #C9973A;
  font-weight: 500;
}

/* ============================================
   TRUST BAR (awards strip)
   ============================================ */
.mklaw-trust-bar {
  background: #F8F6F1;
  padding: 28px 0;
  border-top: 3px solid #C9973A;
  border-bottom: 1px solid #E2DDD5;
}

.mklaw-trust-bar .trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.mklaw-trust-bar .trust-item {
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.mklaw-trust-bar .trust-num {
  font-size: 28px;
  font-weight: 700;
  color: #304050;
  display: block;
}

.mklaw-trust-bar .trust-label {
  font-size: 12px;
  color: #6B6B80;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mklaw-trust-bar .trust-divider {
  width: 1px;
  height: 40px;
  background: #E2DDD5;
}

/* ============================================
   PRACTICE AREA CARDS
   ============================================ */
.mklaw-practice-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.mklaw-practice-section .section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9973A;
  margin-bottom: 12px;
  display: block;
}

.mklaw-practice-section .section-heading {
  font-family: 'Playfair Display', serif !important;
  font-size: 38px !important;
  color: #304050 !important;
  margin-bottom: 48px !important;
}

.mklaw-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.mklaw-card {
  border: 1px solid #E2DDD5;
  border-radius: 8px;
  padding: 32px 28px;
  background: #FFFFFF;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.mklaw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #C9973A;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.mklaw-card:hover {
  box-shadow: 0 8px 32px rgba(13,27,62,0.10);
  transform: translateY(-3px);
}

.mklaw-card:hover::before {
  transform: scaleX(1);
}

.mklaw-card .card-icon {
  width: 48px;
  height: 48px;
  background: #F8F6F1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.mklaw-card h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 20px !important;
  color: #304050 !important;
  margin-bottom: 10px !important;
}

.mklaw-card p {
  font-size: 14px;
  color: #6B6B80;
  line-height: 1.7;
  margin-bottom: 20px;
}

.mklaw-card .card-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #C9973A;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.mklaw-card .card-link:hover { color: #304050; }

/* ============================================
   ATTORNEY SECTION (homepage)
   ============================================ */
.mklaw-attorney-section {
  background: #F8F6F1;
  padding: 80px 0;
}

.mklaw-attorney-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
}

.mklaw-attorney-photo img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(13,27,62,0.15);
}

.mklaw-attorney-bio .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9973A;
  margin-bottom: 12px;
  display: block;
}

.mklaw-attorney-bio h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 36px !important;
  color: #304050 !important;
  margin-bottom: 8px !important;
}

.mklaw-attorney-bio .title-sub {
  font-size: 14px;
  color: #6B6B80;
  margin-bottom: 20px;
}

.mklaw-attorney-bio .bio-text {
  font-size: 15px;
  line-height: 1.8;
  color: #3A3A4E;
  margin-bottom: 24px;
}

.mklaw-lang-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.mklaw-lang-badge {
  padding: 4px 12px;
  background: #304050;
  color: #C9973A;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.mklaw-awards-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items: center;
}

.mklaw-awards-grid img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.2s;
}

.mklaw-awards-grid img:hover { filter: grayscale(0%); }

/* ============================================
   FREE BOOK CTA BANNER
   ============================================ */
.mklaw-book-cta {
  background: #304050;
  padding: 60px 0;
}

.mklaw-book-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.mklaw-book-cta h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 28px !important;
  color: #FFFFFF !important;
  margin-bottom: 8px !important;
}

.mklaw-book-cta p {
  font-size: 15px;
  color: #8899BB;
}

.mklaw-book-cta .btn-gold {
  background: #C9973A;
  color: #FFFFFF;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.mklaw-book-cta .btn-gold:hover { background: #b08030; color: #fff; }

/* ============================================
   PROCESS STEPS SECTION
   ============================================ */
.mklaw-process-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.mklaw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1140px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.mklaw-step {
  text-align: center;
  padding: 32px 24px;
}

.mklaw-step .step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #C9973A;
  color: #FFFFFF;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.mklaw-step h4 {
  font-family: 'Playfair Display', serif !important;
  font-size: 18px !important;
  color: #304050 !important;
  margin-bottom: 10px !important;
}

.mklaw-step p {
  font-size: 14px;
  color: #6B6B80;
  line-height: 1.7;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.mklaw-faq-section {
  background: #F8F6F1;
  padding: 80px 0;
}

.mklaw-faq-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.mklaw-faq-section .section-heading {
  text-align: center;
  font-family: 'Playfair Display', serif !important;
  font-size: 36px !important;
  color: #304050 !important;
  margin-bottom: 48px !important;
}

.mklaw-faq-item {
  border-bottom: 1px solid #E2DDD5;
  margin-bottom: 0;
}

.mklaw-faq-item:first-child {
  border-top: 1px solid #E2DDD5;
}

.mklaw-faq-question {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #304050;
  gap: 16px;
}

.mklaw-faq-question:hover { color: #C9973A; }

.mklaw-faq-question .faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #C9973A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #C9973A;
  font-size: 16px;
  transition: transform 0.2s;
}

.mklaw-faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.mklaw-faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #6B6B80;
}

.mklaw-faq-item.open .mklaw-faq-answer {
  display: block;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.mklaw-reviews-section {
  padding: 80px 0;
  background: #FFFFFF;
}

.mklaw-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1140px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.mklaw-review-card {
  border: 1px solid #E2DDD5;
  border-radius: 8px;
  padding: 28px;
  background: #FFFFFF;
}

.mklaw-review-stars {
  color: #C9973A;
  font-size: 16px;
  margin-bottom: 14px;
}

.mklaw-review-text {
  font-size: 14px;
  line-height: 1.8;
  color: #3A3A4E;
  font-style: italic;
  margin-bottom: 16px;
}

.mklaw-review-author {
  font-size: 13px;
  font-weight: 600;
  color: #304050;
}

/* ============================================
   CONTACT / CTA SECTION
   ============================================ */
.mklaw-contact-cta {
  background: #304050;
  padding: 80px 0;
  text-align: center;
}

.mklaw-contact-cta h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 38px !important;
  color: #FFFFFF !important;
  margin-bottom: 16px !important;
}

.mklaw-contact-cta p {
  font-size: 16px;
  color: #8899BB;
  margin-bottom: 32px;
}

.mklaw-contact-cta .cta-phone {
  font-size: 28px;
  font-weight: 700;
  color: #C9973A;
  display: block;
  margin-bottom: 24px;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
}

/* ============================================
   FOOTER
   ============================================ */
#wrapper .fusion-footer-widget-area {
  background: #1e2d38 !important;
  padding: 60px 0 40px !important;
}

#wrapper .fusion-footer-widget-area h3,
#wrapper .fusion-footer-widget-area .widget-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #C9973A !important;
  margin-bottom: 16px !important;
}

#wrapper .fusion-footer-widget-area,
#wrapper .fusion-footer-widget-area p,
#wrapper .fusion-footer-widget-area li,
#wrapper .fusion-footer-widget-area a {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: #8899BB !important;
}

#wrapper .fusion-footer-widget-area a:hover {
  color: #C9973A !important;
}

#wrapper .fusion-copyright-content {
  background: #162028 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  color: #4A5568 !important;
}

/* ============================================
   PRACTICE AREA INNER PAGES
   ============================================ */
.mklaw-page-intro {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.mklaw-page-intro h1 {
  font-family: 'Playfair Display', serif !important;
  font-size: 42px !important;
  color: #304050 !important;
  margin-bottom: 20px !important;
}

.mklaw-page-intro .lead {
  font-size: 17px;
  color: #6B6B80;
  line-height: 1.8;
  margin-bottom: 32px;
}

.mklaw-key-facts {
  background: #F8F6F1;
  border-left: 4px solid #C9973A;
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
  margin: 40px 0;
}

.mklaw-key-facts h4 {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #C9973A !important;
  margin-bottom: 16px !important;
}

.mklaw-key-facts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mklaw-key-facts ul li {
  font-size: 14px;
  color: #3A3A4E;
  line-height: 1.7;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.mklaw-key-facts ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #C9973A;
  font-weight: 700;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .mklaw-hero h1 { font-size: 32px !important; }
  .mklaw-attorney-inner { grid-template-columns: 1fr; }
  .mklaw-attorney-photo { max-width: 320px; margin: 0 auto; }
  .mklaw-steps { grid-template-columns: 1fr; }
  .mklaw-book-inner { flex-direction: column; text-align: center; }
  .mklaw-trust-bar .trust-inner { gap: 20px; }
  .mklaw-trust-bar .trust-divider { display: none; }
  .mklaw-mobile-cta { display: flex !important; }
}

@media (min-width: 769px) {
  .mklaw-mobile-cta { display: none !important; }
}

.mklaw-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #C9973A;
  color: #FFFFFF;
  text-align: center;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

/* ============================================
   UTILITY
   ============================================ */
.mklaw-section-center {
  text-align: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.mklaw-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9973A;
  margin-bottom: 12px;
  display: block;
}

/* ============================================
   FULL WIDTH BREAKOUT — override Avada containers
   ============================================ */

/* Remove Avada's content padding on our full-width template */
body .mklaw-hero,
body .mklaw-trust-bar,
body .mklaw-practice-section,
body .mklaw-attorney-section,
body .mklaw-book-cta,
body .mklaw-process-section,
body .mklaw-faq-section,
body .mklaw-reviews-section,
body .mklaw-contact-cta {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

/* Kill Avada's post-content constraints on our template */
.page-template-template-mklaw-fullwidth .post-content,
.page-template-template-mklaw-fullwidth .entry-content,
.page-template-template-mklaw-fullwidth #wrapper .fusion-column,
.page-template-template-mklaw-fullwidth .fusion-layout-column,
.page-template-template-mklaw-fullwidth .fusion-main-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Avada adds page title bar — hide it on our homepage */
.page-template-template-mklaw-fullwidth .fusion-page-title-bar {
  display: none !important;
}

/* Ensure sections don't overflow horizontally */
body {
  overflow-x: hidden !important;
}

/* ============================================
   FOOTER FORCE OVERRIDE — appended last
   ============================================ */
html body #wrapper .fusion-footer-widget-area,
html body #wrapper .fusion-footer-wrapper {
  background-color: #1e2d38 !important;
}
html body #wrapper .fusion-footer-widget-area .widget-title,
html body #wrapper .fusion-footer-widget-area h3,
html body #wrapper .fusion-footer-widget-area h4 {
  color: #50a090 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}
html body #wrapper .fusion-footer-widget-area,
html body #wrapper .fusion-footer-widget-area p,
html body #wrapper .fusion-footer-widget-area li,
html body #wrapper .fusion-footer-widget-area a {
  color: #7aa89f !important;
  font-size: 14px !important;
}
html body #wrapper .fusion-footer-widget-area a:hover {
  color: #50a090 !important;
}
html body #wrapper .fusion-copyright-content,
html body #wrapper .fusion-copyright-wrapper {
  background-color: #162028 !important;
  color: #4a6068 !important;
}
html body #wrapper .fusion-copyright-content a {
  color: #4a6068 !important;
}

/* Copyright bar full width fix */
html body #wrapper .fusion-footer-copyright-area,
html body .fusion-footer-copyright-area,
html body #wrapper .fusion-copyright-wrapper,
html body .fusion-copyright-content {
  background-color: #162028 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 40px !important;
  box-sizing: border-box !important;
  border-top: none !important;
}

/* Kill the white gap between footer and copyright */
html body #wrapper .fusion-footer-widget-area {
  margin-bottom: 0 !important;
  padding-bottom: 40px !important;
}

html body #wrapper .fusion-footer-copyright-area .fusion-copyright-content {
  max-width: 1100px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  color: #4a6068 !important;
  font-size: 12px !important;
}


/* ============================================
   HEADER — transparent on homepage only,
   solid white on all inner pages
   ============================================ */

/* HOMEPAGE ONLY — overlay on hero */
body.home #wrapper .fusion-header-wrapper,
body.home.page-template-default #wrapper .fusion-header-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

/* Homepage nav links — white on dark hero */
body.home #wrapper .fusion-header-wrapper:not(.fusion-is-sticky)
  .fusion-main-menu > ul > li > a {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

body.home #wrapper .fusion-header-wrapper:not(.fusion-is-sticky)
  .fusion-main-menu > ul > li > a:hover {
  color: #50a090 !important;
}

/* Homepage phone/contact info white */
body.home #wrapper .fusion-header-wrapper:not(.fusion-is-sticky)
  .fusion-header-tagline,
body.home #wrapper .fusion-header-wrapper:not(.fusion-is-sticky)
  .fusion-contact-info {
  color: #ffffff !important;
}

/* Homepage sticky header — solid white on scroll */
body.home #wrapper .fusion-header-wrapper.fusion-is-sticky {
  position: fixed !important;
  background: #ffffff !important;
  box-shadow: 0 2px 20px rgba(48,64,80,0.10) !important;
  border-bottom: 2px solid #50a090 !important;
}

body.home .fusion-is-sticky .fusion-main-menu > ul > li > a {
  color: #304050 !important;
  text-shadow: none !important;
}

/* ALL OTHER PAGES — solid white header always */
body:not(.home) #wrapper .fusion-header-wrapper {
  position: relative !important;
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(48,64,80,0.08) !important;
  border-bottom: 2px solid #50a090 !important;
}

body:not(.home) #wrapper .fusion-main-menu > ul > li > a {
  color: #304050 !important;
  text-shadow: none !important;
}

body:not(.home) #wrapper .fusion-main-menu > ul > li > a:hover,
body:not(.home) #wrapper .fusion-main-menu > ul > li.current-menu-item > a {
  color: #50a090 !important;
}

/* Hero needs top padding on homepage for overlay header */
body.home .mklaw-hero {
  padding-top: 150px !important;
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* Inner page heroes — no extra padding needed */
body:not(.home) .mklaw-hero {
  padding-top: 60px !important;
}

/* Dropdown menus — always dark */
#wrapper .fusion-main-menu .sub-menu {
  background: #304050 !important;
  border-top: 3px solid #50a090 !important;
}

#wrapper .fusion-main-menu .sub-menu li a {
  color: #c8ddd9 !important;
  text-shadow: none !important;
}

/* ============================================
   BLOG ARCHIVE — match new design system
   ============================================ */

.blog .fusion-page-title-bar,
.archive .fusion-page-title-bar,
.category .fusion-page-title-bar {
  background: linear-gradient(135deg, #304050 0%, #3d5060 100%) !important;
  padding: 60px 0 !important;
  display: block !important;
}

.blog .fusion-page-title-bar h1,
.archive .fusion-page-title-bar h1,
.blog .fusion-page-title-bar .fusion-page-title-captions,
.archive .fusion-page-title-bar .fusion-page-title-captions {
  font-family: 'Playfair Display', serif !important;
  color: #ffffff !important;
}

.blog-shortcode-post-wrapper,
.fusion-post-grid,
.fusion-blog-layout-grid .fusion-post-wrapper,
.post-wrapper,
#wrapper .fusion-posts-container .fusion-post {
  border: 1px solid #d0e4e0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  transition: box-shadow 0.25s !important;
  background: #ffffff !important;
}

#wrapper .fusion-posts-container .fusion-post:hover {
  box-shadow: 0 8px 32px rgba(48,64,80,0.12) !important;
  transform: translateY(-3px) !important;
}

.blog-shortcode-post-wrapper h2 a,
.fusion-post-grid h2 a,
#wrapper .fusion-posts-container h2 a,
#wrapper .fusion-posts-container .fusion-post-title a {
  font-family: 'Playfair Display', serif !important;
  color: #304050 !important;
  text-decoration: none !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
}

#wrapper .fusion-posts-container h2 a:hover,
#wrapper .fusion-posts-container .fusion-post-title a:hover {
  color: #50a090 !important;
}

.fusion-post-meta,
.fusion-post-meta a,
.fusion-meta-info,
.fusion-date {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  color: #7aa89f !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.fusion-post-content p,
.fusion-excerpt-small,
.blog .post-content p {
  font-size: 14px !important;
  color: #5a6a75 !important;
  line-height: 1.7 !important;
}

.fusion-read-more,
.fusion-button-wrapper a {
  color: #50a090 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-decoration: none !important;
}

.blog #wrapper,
.archive #wrapper {
  background: #f2f7f6 !important;
}

.fusion-blog-layout-grid,
.fusion-posts-container {
  background: transparent !important;
}

.single-post .fusion-page-title-bar {
  background: linear-gradient(135deg, #304050 0%, #3d5060 100%) !important;
  display: block !important;
}

.single-post .fusion-page-title-bar h1 {
  font-family: 'Playfair Display', serif !important;
  color: #ffffff !important;
}

.single-post article h2,
.single-post article h3 {
  font-family: 'Playfair Display', serif !important;
  color: #304050 !important;
}

/* Payment Portal button in nav */
#wrapper .fusion-main-menu > ul > li.mklaw-pay-btn > a,
#wrapper .fusion-main-menu > ul > li.mklaw-pay-btn > a:hover {
  background: #50a090 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 8px 16px !important;
  margin-left: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

body.home #wrapper .fusion-header-wrapper:not(.fusion-is-sticky)
  .fusion-main-menu > ul > li.mklaw-pay-btn > a {
  background: rgba(80,160,144,0.9) !important;
  color: #ffffff !important;
}

/* ============================================
   MOBILE RESPONSIVE — max-width 768px
   ============================================ */
@media (max-width: 768px) {

  .mklaw-hero > div[style*="position:absolute"][style*="right:0"] {
    display: none !important;
  }

  .mklaw-hero > div[style*="width:60%"],
  .mklaw-hero > div[style*="width: 60%"] {
    width: 100% !important;
    padding: 100px 24px 60px !important;
  }

  body.home .mklaw-hero {
    min-height: auto !important;
    padding-top: 100px !important;
  }

  .mklaw-hero h1,
  .mklaw-hero h1[style] {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }

  .mklaw-trust-bar .trust-inner { gap: 16px !important; }
  .mklaw-trust-bar .trust-divider { display: none !important; }
  .mklaw-trust-bar .trust-item { min-width: 80px !important; }
  .mklaw-trust-bar .trust-num { font-size: 20px !important; }

  .mklaw-cards-grid { grid-template-columns: 1fr !important; }
  .mklaw-attorney-inner { grid-template-columns: 1fr !important; }
  .mklaw-steps { grid-template-columns: 1fr !important; }
  .mklaw-reviews-grid { grid-template-columns: 1fr !important; }

  .mklaw-attorney-photo {
    max-width: 280px !important;
    margin: 0 auto 24px !important;
  }

  .mklaw-book-inner {
    flex-direction: column !important;
    text-align: center !important;
  }

  div[style*="background:#304050"][style*="padding:70px"],
  div[style*="background:linear-gradient(135deg,#304050"][style*="padding:70px"] {
    padding: 80px 20px 40px !important;
  }

  div[style*="background:#304050"] h1[style*="font-size:42px"],
  div[style*="background:#304050"] h1[style*="font-size:44px"],
  div[style*="background:linear-gradient(135deg,#304050"] h1 {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }

  div[style*="grid-template-columns:repeat(4"] { grid-template-columns: 1fr 1fr !important; }
  div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr 1fr !important; }

  div[style*="display:flex"][style*="flex-wrap:wrap"] > div[style*="flex:1"] {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }

  .mklaw-faq-section { padding: 40px 20px !important; }

  div[style*="float:left"][style*="width:300px"],
  div[style*="float: left"][style*="width: 300px"] {
    float: none !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto 24px !important;
    display: block !important;
  }

  .fusion-posts-container .fusion-post { margin-bottom: 24px !important; }

  .mklaw-mobile-cta {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #50a090 !important;
    color: #fff !important;
    text-align: center !important;
    padding: 16px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    z-index: 9999 !important;
    font-family: Inter, sans-serif !important;
  }

  body { padding-bottom: 60px !important; }
}

@media (max-width: 480px) {
  .mklaw-hero h1 { font-size: 24px !important; }
  div[style*="background:#304050"] h1 { font-size: 24px !important; }

  div[style*="grid-template-columns:repeat(4"],
  div[style*="grid-template-columns:repeat(3"],
  div[style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  .mklaw-trust-bar .trust-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
}

/* ============================================
   BLOG / SINGLE POST — NAV OVERLAP FIX (Issue 3)
   ============================================ */
.blog .mklaw-blog-hero,
.single-post .mklaw-blog-hero,
.archive .mklaw-blog-hero,
.category .mklaw-blog-hero {
  position: relative;
  z-index: 1;
}

/* Prevent sticky header from overlapping blog content on first paint */
.blog #wrapper .fusion-header-wrapper,
.single-post #wrapper .fusion-header-wrapper,
.archive #wrapper .fusion-header-wrapper,
.category #wrapper .fusion-header-wrapper {
  position: relative !important;
  z-index: 100;
}

/* Ensure blog post featured images stack below header */
.single-post .fusion-post-content-wrapper,
.single-post .post-content,
.blog .fusion-posts-container {
  position: relative;
  z-index: 1;
}

/* Blog post card image height consistency */
.blog .fusion-post-card-image img,
.archive .fusion-post-card-image img {
  height: 200px !important;
  object-fit: cover !important;
  width: 100% !important;
}

/* ============================================
   SECONDARY HEADER / TOP BAR (Issue 7)
   ============================================ */
#wrapper .fusion-secondary-header {
  background: #253040 !important;
  border-bottom: 1px solid rgba(80,160,144,0.2) !important;
}

#wrapper .fusion-secondary-header .fusion-alignleft,
#wrapper .fusion-secondary-header .fusion-alignright {
  color: #a8c4be !important;
  font-size: 13px !important;
}

#wrapper .fusion-secondary-header a {
  color: #50a090 !important;
  font-weight: 600 !important;
}

#wrapper .fusion-secondary-header a:hover {
  color: #ffffff !important;
}

/* ============================================
   FIX 1 — White headings on ALL dark hero sections
   ============================================ */
div[style*="background:#304050"] h1,
div[style*="background:linear-gradient(135deg,#304050"] h1,
div[style*="background:linear-gradient(135deg, #304050"] h1,
.fusion-page-title-bar h1,
.fusion-page-title-bar .fusion-page-title-captions,
.blog .fusion-page-title-bar h1,
.archive .fusion-page-title-bar h1 {
  color: #ffffff !important;
  opacity: 1 !important;
}

.blog .fusion-page-title-bar .fusion-page-title-captions,
.blog .fusion-page-title-bar h1,
.fusion-page-title-bar .fusion-title h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  opacity: 1 !important;
}

div[style*="background:linear-gradient(135deg,#304050"] h1[style],
div[style*="background:#304050"] h1[style] {
  color: #ffffff !important;
}

div[style*="background:#304050"] span[style*="color:#50a090"],
div[style*="background:linear-gradient"] span[style*="color:#50a090"] {
  opacity: 1 !important;
}

/* ============================================
   FIX 2 — Footer 2-column grid layout
   ============================================ */
#wrapper .fusion-footer-widget-area .fusion-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 48px !important;
  max-width: 1060px !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
}

#wrapper .fusion-footer-widget-area .fusion-column {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

#wrapper .fusion-footer-widget-area .widget-title,
#wrapper .fusion-footer-widget-area h3 {
  color: #50a090 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(80,160,144,0.2) !important;
}

@media (max-width: 768px) {
  #wrapper .fusion-footer-widget-area .fusion-row {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 0 20px !important;
  }
}

/* ============================================
   STEP 4 — Width overflow prevention
   ============================================ */
/* Contain text blocks that live outside full-width sections */
#wrapper .post-content > p,
#wrapper .entry-content > p,
#wrapper .post-content > h2,
#wrapper .post-content > h3,
#wrapper .entry-content > h2,
#wrapper .entry-content > h3 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

/* Contain orphaned flex / grid divs */
#wrapper .post-content > div[style*="display:flex"],
#wrapper .entry-content > div[style*="display:flex"] {
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

/* Full-width sections MUST NOT be constrained */
#wrapper .post-content > div[style*="background:#304050"],
#wrapper .post-content > div[style*="background:#f2f7f6"],
#wrapper .post-content > div[style*="background:linear-gradient"],
#wrapper .post-content > div[style*="background:#1e2d38"],
#wrapper .entry-content > div[style*="background:#304050"],
#wrapper .entry-content > div[style*="background:#f2f7f6"],
#wrapper .entry-content > div[style*="background:linear-gradient"] {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============================================
   EQUAL-HEIGHT CARD GRIDS (practice area pages)
   ============================================ */
/* Convert inline flex card rows to a proper equal-height grid */
#wrapper .post-content > div[style*="display:flex"][style*="gap:16px"],
#wrapper .entry-content > div[style*="display:flex"][style*="gap:16px"] {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
  max-width: 1060px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 32px !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  box-sizing: border-box !important;
}

/* Individual cards stretch to fill grid row height */
#wrapper .post-content > div[style*="display:flex"][style*="gap:16px"] > div,
#wrapper .post-content > div[style*="display:flex"][style*="gap:16px"] > a,
#wrapper .entry-content > div[style*="display:flex"][style*="gap:16px"] > div,
#wrapper .entry-content > div[style*="display:flex"][style*="gap:16px"] > a {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Inner card padding divs also stretch */
#wrapper .post-content > div[style*="display:flex"][style*="gap:16px"] > a > div,
#wrapper .entry-content > div[style*="display:flex"][style*="gap:16px"] > a > div {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

@media (max-width: 900px) {
  #wrapper .post-content > div[style*="display:flex"][style*="gap:16px"],
  #wrapper .entry-content > div[style*="display:flex"][style*="gap:16px"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 560px) {
  #wrapper .post-content > div[style*="display:flex"][style*="gap:16px"],
  #wrapper .entry-content > div[style*="display:flex"][style*="gap:16px"] {
    grid-template-columns: 1fr !important;
  }
}

/* Hero height fix — content-driven, not viewport-driven (Round 28) */
.mklaw-hero,
body.home .mklaw-hero,
body:not(.home) .mklaw-hero {
  min-height: auto !important;
  height: auto !important;
}

/* ==========================================
   ATTORNEY PROFILE — Mobile Fix (Round 27)
   ========================================== */
@media (max-width: 768px) {

  /* Stack float layout on mobile */
  div[style*="float:left"][style*="width:280px"],
  div[style*="float:left"][style*="width:300px"],
  div[style*="float:left"][style*="width:260px"] {
    float: none !important;
    width: 100% !important;
    margin: 0 0 24px 0 !important;
    text-align: center !important;
  }

  /* Attorney photo full width on mobile */
  div[style*="float:left"] img[style*="border-radius:8px"] {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Bar admissions box full width */
  div[style*="background:#f2f7f6"][style*="border-radius:8px"][style*="padding:20px"] {
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
  }

  /* Stats grid — 2 columns on mobile */
  div[style*="display:flex;gap:16px;flex-wrap:wrap;margin-bottom:28px;"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  /* Hero text stack on mobile */
  div[style*="background:linear-gradient(135deg,#304050"] > div {
    padding: 60px 20px 40px !important;
  }

  /* Language badges wrap on mobile */
  div[style*="display:flex;gap:8px;flex-wrap:wrap;justify-content:center"] {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  /* Award images — 2 per row on mobile */
  div[style*="display:flex;gap:16px;justify-content:center;flex-wrap:wrap"] img {
    height: 80px !important;
    width: auto !important;
  }

  /* Education and membership list items */
  li[style*="font-size:14px;color:#4a5a65;padding:7px 0"] {
    font-size: 13px !important;
    padding: 8px 0 !important;
  }

  /* Remove clearfix issues */
  div[style*="overflow:hidden"] {
    overflow: visible !important;
  }
}

@media (max-width: 480px) {
  /* Single column stats on small phones */
  div[style*="display:flex;gap:16px;flex-wrap:wrap;margin-bottom:28px;"] {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   MASTER FIX — 2026-05-17
   ============================================ */

/* Hero — auto height, no blank spaces */
.mklaw-hero,
body.home .mklaw-hero,
body:not(.home) .mklaw-hero,
div[class*="mklaw-hero"] {
  min-height: auto !important;
  height: auto !important;
}

/* Hero padding for homepage overlay header */
body.home .mklaw-hero {
  padding-top: 120px !important;
}

/* Inner page heroes no extra padding */
body:not(.home) .mklaw-hero {
  padding-top: 0 !important;
}

/* Footer — proper styling */
#wrapper .fusion-footer-widget-area {
  background: #1e2d38 !important;
  padding: 48px 0 !important;
}

#wrapper .fusion-footer-widget-area .fusion-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 48px !important;
  max-width: 1060px !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
}

#wrapper .fusion-footer-widget-area .fusion-column {
  float: none !important;
  width: 100% !important;
}

#wrapper .fusion-footer-widget-area .widget-title {
  color: #50a090 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(80,160,144,0.2) !important;
  padding-bottom: 8px !important;
  margin-bottom: 16px !important;
}

#wrapper .fusion-footer-widget-area p,
#wrapper .fusion-footer-widget-area li,
#wrapper .fusion-footer-widget-area a {
  color: #7aa89f !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

#wrapper .fusion-footer-widget-area a:hover {
  color: #50a090 !important;
}

/* Copyright bar */
#wrapper .fusion-footer-copyright-area {
  background: #1a2530 !important;
  border-top: 1px solid rgba(80,160,144,0.15) !important;
}

/* Hide Avada branding in footer */
.fusion-copyright-notice a[href*="avada"],
.fusion-copyright-notice a[href*="theme-fusion"],
.fusion-copyright-notice a[href*="wordpress.org"] {
  display: none !important;
}

/* ============================================
   MOBILE — complete responsive overhaul
   ============================================ */
@media (max-width: 768px) {

  /* Hero photo — hide on mobile */
  .mklaw-hero > div[style*="position:absolute"][style*="right:0"] {
    display: none !important;
  }

  /* Hero text — full width */
  .mklaw-hero > div[style*="width:60%"],
  .mklaw-hero > div[style*="width: 60%"] {
    width: 100% !important;
    padding: 80px 24px 50px !important;
  }

  body.home .mklaw-hero {
    min-height: auto !important;
    padding-top: 80px !important;
  }

  /* Hero heading smaller */
  .mklaw-hero h1,
  div[style*="background:linear-gradient(135deg,#304050"] h1 {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }

  /* Trust bar — wrap */
  .mklaw-trust-bar .trust-inner,
  div[style*="display:flex;justify-content:center;gap:48px"] {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  /* Trust dividers hide */
  div[style*="width:1px;height:40px"] {
    display: none !important;
  }

  /* Practice area grids — 1 column */
  div[style*="display:grid"][style*="grid-template-columns:repeat(4"],
  div[style*="display:grid"][style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Cards grid */
  .mklaw-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* Attorney section stack */
  .mklaw-attorney-inner {
    grid-template-columns: 1fr !important;
  }

  /* Float layout — stack on mobile */
  div[style*="float:left"][style*="width:280px"],
  div[style*="float:left"][style*="width:300px"],
  div[style*="float:left"][style*="width:260px"] {
    float: none !important;
    width: 100% !important;
    margin: 0 0 24px 0 !important;
  }

  /* Attorney photo center on mobile */
  div[style*="float:left"] img[style*="border-radius:8px"] {
    max-width: 250px !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Inner page heroes smaller */
  div[style*="background:linear-gradient(135deg,#304050"][style*="padding:70px"] {
    padding: 60px 20px 40px !important;
  }

  /* Key facts — stack */
  div[style*="display:flex;gap:16px;flex-wrap:wrap"] > div[style*="flex:1"] {
    flex: none !important;
    width: 100% !important;
  }

  /* FAQ padding */
  .mklaw-faq-section {
    padding: 30px 16px !important;
  }

  /* Book CTA — stack */
  .mklaw-book-inner,
  div[style*="display:flex;align-items:center;gap:60px"] {
    flex-direction: column !important;
    gap: 24px !important;
    text-align: center !important;
  }

  /* Footer — 1 column */
  #wrapper .fusion-footer-widget-area .fusion-row {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 0 20px !important;
  }

  /* Award images smaller */
  div[style*="justify-content:center;flex-wrap:wrap"] img[style*="height:120px"] {
    height: 70px !important;
  }

  /* Process steps — 1 column */
  div[style*="display:grid;grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="display:grid;grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* CTA phone number */
  .cta-phone,
  a[style*="font-family:Playfair Display"][style*="font-size:36px"] {
    font-size: 24px !important;
  }
}

@media (max-width: 480px) {
  .mklaw-hero h1 { font-size: 24px !important; }
  div[style*="background:linear-gradient"] h1 { font-size: 24px !important; }
}

/* ============================================
   HOMEPAGE — transparent overlay header (Phase 13)
   ============================================ */
body.home #wrapper .fusion-header-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

/* White nav links on dark hero */
body.home #wrapper .fusion-header-wrapper:not(.fusion-is-sticky)
  .fusion-main-menu > ul > li > a {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

body.home #wrapper .fusion-header-wrapper:not(.fusion-is-sticky)
  .fusion-main-menu > ul > li > a:hover,
body.home #wrapper .fusion-header-wrapper:not(.fusion-is-sticky)
  .fusion-main-menu > ul > li.current-menu-item > a {
  color: #50a090 !important;
}

/* Logo on dark hero - ensure visible */
body.home #wrapper .fusion-header-wrapper:not(.fusion-is-sticky)
  .fusion-logo a {
  filter: brightness(10) !important;
}

/* Sticky header on scroll — solid white */
body.home #wrapper .fusion-header-wrapper.fusion-is-sticky {
  position: fixed !important;
  background: #ffffff !important;
  box-shadow: 0 2px 20px rgba(48,64,80,0.10) !important;
  border-bottom: 2px solid #50a090 !important;
}

body.home .fusion-is-sticky .fusion-main-menu > ul > li > a {
  color: #304050 !important;
  text-shadow: none !important;
}

body.home .fusion-is-sticky .fusion-logo a {
  filter: none !important;
}

/* Hero padding to clear overlay header */
body.home .mklaw-hero {
  padding-top: 140px !important;
}

/* INNER PAGES — always solid white header */
body:not(.home) #wrapper .fusion-header-wrapper {
  position: relative !important;
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(48,64,80,0.08) !important;
  border-bottom: 2px solid #50a090 !important;
}

body:not(.home) .fusion-main-menu > ul > li > a {
  color: #304050 !important;
  text-shadow: none !important;
}

/* Force 4-column grid on family law and immigration service cards */
@media (min-width: 769px) {
  div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(4, 1fr) !important;
    max-width: 1100px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

/* Contact page hero — center text content */
.page-id-1077 .mklaw-hero-inner {
  text-align: center !important;
}

.page-id-1077 .mklaw-hero-ctas {
  justify-content: center !important;
}

/* Contact page quick features — center */
div[style*="display:flex;gap:8px;flex-wrap:wrap"] {
  justify-content: center !important;
}

/* =============================================
   BLANK SPACE FIX — hero padding (authoritative final rules)
   ============================================= */

/* Homepage hero — override all prior conflicting padding-top values */
body.home .mklaw-hero {
  padding-top: 100px !important;
  padding-bottom: 0 !important;
}

/* Kill any hidden sliders taking vertical space */
.fusion-slider-container,
.fusion-slider-visibility,
#sliders-container,
.rev_slider_wrapper,
.elastic-slider-container {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove stacked top/bottom margins between homepage sections */
body.home .post-content > div,
body.home .entry-content > div {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ============================================
   HOMEPAGE TRANSPARENT HEADER — DEFINITIVE (Round 29)
   Overrides all prior conflicting rules via cascade.
   Header sits ON TOP of hero, no white band.
   ============================================ */

body.home #wrapper .fusion-header-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10000 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

body.home .fusion-secondary-header {
  background: rgba(30,45,56,0.6) !important;
  border: none !important;
}

body.home .fusion-header {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

body.home .fusion-header-wrapper:not(.fusion-is-sticky) .fusion-main-menu > ul > li > a,
body.home .fusion-header-wrapper:not(.fusion-is-sticky) .fusion-main-menu > ul > li > a:visited {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}

body.home .fusion-header-wrapper:not(.fusion-is-sticky) .fusion-main-menu > ul > li > a:hover,
body.home .fusion-header-wrapper:not(.fusion-is-sticky) .fusion-main-menu > ul > li.current-menu-item > a {
  color: #50a090 !important;
}

body.home .fusion-header-wrapper:not(.fusion-is-sticky) .fusion-logo img {
  filter: brightness(5) !important;
}

body.home .fusion-header-wrapper.fusion-is-sticky {
  position: fixed !important;
  background: #ffffff !important;
  box-shadow: 0 2px 20px rgba(48,64,80,0.12) !important;
  border-bottom: 2px solid #50a090 !important;
}

body.home .fusion-is-sticky .fusion-main-menu > ul > li > a {
  color: #304050 !important;
  text-shadow: none !important;
}

body.home .fusion-is-sticky .fusion-logo img {
  filter: none !important;
}

body.home .mklaw-hero {
  padding-top: 120px !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}

body.home #main,
body.home #content,
body.home .fusion-page-title-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ============================================
   INNER PAGES — solid white header always
   ============================================ */
body:not(.home) #wrapper .fusion-header-wrapper {
  position: relative !important;
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(48,64,80,0.08) !important;
  border-bottom: 2px solid #50a090 !important;
}

body:not(.home) .fusion-main-menu > ul > li > a {
  color: #304050 !important;
  text-shadow: none !important;
}

body:not(.home) .fusion-main-menu > ul > li > a:hover,
body:not(.home) .fusion-main-menu > ul > li.current-menu-item > a {
  color: #50a090 !important;
}

body:not(.home) .fusion-logo img {
  filter: none !important;
}


/* Kill the empty Avada slider container that creates blank space above main */
#sliders-container,
#sliders-container.fusion-slider-visibility,
.fusion-slider-visibility {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
