/*
Theme Name: My Digital Marketing Help Modern Theme
Theme URI: https://www.mydigitalmarketinghelp.com/
Author: Marcin Kuruc
Author URI: https://www.mydigitalmarketinghelp.com/
Description: A custom responsive WordPress theme for My Digital Marketing Help with an all-device off-canvas burger menu, site search, and mobile-friendly navigation.
Version: 1.3.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: mdmh-custom
*/

:root {
  --mdmh-blue: #075df5;
  --mdmh-blue-dark: #0648ba;
  --mdmh-navy: #10202a;
  --mdmh-dark: #17252f;
  --mdmh-yellow: #f6c300;
  --mdmh-text: #26323b;
  --mdmh-muted: #65717b;
  --mdmh-border: #e6edf5;
  --mdmh-bg: #f7f9fc;
  --mdmh-white: #ffffff;
  --mdmh-radius: 22px;
  --mdmh-shadow: 0 18px 50px rgba(16, 32, 42, 0.12);
  --mdmh-shadow-soft: 0 12px 32px rgba(16, 32, 42, 0.08);
  --mdmh-container: 1280px;
  --mdmh-transition: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mdmh-text);
  background: var(--mdmh-white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { color: var(--mdmh-blue); text-decoration: none; transition: color var(--mdmh-transition), transform var(--mdmh-transition), background var(--mdmh-transition), border var(--mdmh-transition); }
a:hover { color: var(--mdmh-blue-dark); }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--mdmh-blue);
  color: #fff;
  border-radius: 10px;
}
.skip-link:focus { left: 12px; }

.mdmh-container {
  width: min(var(--mdmh-container), calc(100% - 40px));
  margin: 0 auto;
}

.mdmh-topbar {
  background: #daeaf7;
  color: var(--mdmh-navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mdmh-topbar__dot {
  background: var(--mdmh-yellow) !important;
}
.mdmh-topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 15px;
}
.mdmh-topbar__dot {
  width: 10px;
  height: 10px;
  background: var(--mdmh-yellow);
  border-radius: 50%;
  display: inline-block;
  margin-right: 9px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230,237,245,0.9);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-branding { display: flex; align-items: center; flex: 0 0 auto; }
.site-branding img { width: 250px; max-height: 68px; object-fit: contain; }
.site-title { margin: 0; font-size: 24px; line-height: 1.1; font-weight: 900; letter-spacing: -0.03em; }
.site-title a { color: var(--mdmh-navy); }
.site-description { margin: 4px 0 0; font-size: 13px; color: var(--mdmh-muted); }

.main-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  color: var(--mdmh-navy);
  font-size: 15px;
  font-weight: 800;
  position: relative;
}
.main-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: var(--mdmh-blue);
  border-radius: 999px;
  transition: width var(--mdmh-transition);
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after { width: 100%; }
.header-cta { flex: 0 0 auto; }

.mdmh-button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--mdmh-blue);
  color: #fff !important;
  border: 2px solid var(--mdmh-blue);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 22px rgba(7, 93, 245, 0.22);
  cursor: pointer;
}
.mdmh-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--mdmh-blue-dark);
  border-color: var(--mdmh-blue-dark);
  transform: translateY(-1px);
  color: #fff !important;
}
.mdmh-button--secondary {
  background: var(--mdmh-white);
  color: var(--mdmh-blue) !important;
  border-color: var(--mdmh-border);
  box-shadow: none;
}
.mdmh-button--secondary:hover {
  background: var(--mdmh-blue);
  color: #fff !important;
  border-color: var(--mdmh-blue);
}
.mdmh-button--yellow {
  background: var(--mdmh-yellow);
  border-color: var(--mdmh-yellow);
  color: var(--mdmh-navy) !important;
  box-shadow: 0 14px 26px rgba(246, 195, 0, 0.28);
}
.mdmh-button--yellow:hover { background: #ffd938; color: var(--mdmh-navy) !important; border-color: #ffd938; }

.menu-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: var(--mdmh-blue);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
}

.mdmh-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 76px;
  background:
    radial-gradient(circle at 12% 20%, rgba(246,195,0,0.22) 0, rgba(246,195,0,0) 28%),
    radial-gradient(circle at 82% 18%, rgba(7,93,245,0.13) 0, rgba(7,93,245,0) 34%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}
.mdmh-hero::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(7,93,245,0.08);
}
.mdmh-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
}
.mdmh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(7,93,245,0.16);
  border-radius: 999px;
  background: rgba(7,93,245,0.08);
  color: var(--mdmh-blue-dark);
  font-weight: 900;
  font-size: 14px;
}
.mdmh-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--mdmh-yellow);
  border-radius: 50%;
}
.mdmh-hero h1,
.entry-header h1,
.page-title {
  margin: 0 0 20px;
  color: var(--mdmh-navy);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}
.mdmh-hero p {
  margin: 0 0 28px;
  max-width: 650px;
  color: var(--mdmh-muted);
  font-size: clamp(17px, 2vw, 21px);
}
.mdmh-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.mdmh-hero__visual {
  position: relative;
}
.mdmh-hero__image-wrap {
  position: relative;
  border-radius: 34px;
  background: var(--mdmh-navy);
  padding: 24px;
  box-shadow: var(--mdmh-shadow);
  overflow: hidden;
}
.mdmh-hero__image-wrap::before {
  content: "";
  position: absolute;
  inset: auto auto 18px 18px;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: var(--mdmh-yellow);
  opacity: 0.88;
}
.mdmh-hero__image-wrap img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 24px;
}
.mdmh-floating-card {
  position: absolute;
  right: -12px;
  bottom: -24px;
  z-index: 2;
  background: var(--mdmh-white);
  border: 1px solid var(--mdmh-border);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--mdmh-shadow-soft);
  min-width: 210px;
}
.mdmh-floating-card strong { display: block; color: var(--mdmh-navy); font-size: 18px; }
.mdmh-floating-card span { color: var(--mdmh-muted); font-size: 14px; }

.mdmh-section { padding: 82px 0; }
.mdmh-section--light { background: var(--mdmh-bg); }
.mdmh-section-header { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.mdmh-section-header h2 {
  margin: 0 0 10px;
  color: var(--mdmh-navy);
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 950;
}
.mdmh-section-header p,
.mdmh-section-header .eyebrow { margin: 0; color: var(--mdmh-muted); }
.eyebrow {
  display: block;
  color: var(--mdmh-blue) !important;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px !important;
}

.mdmh-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.mdmh-service-card,
.post-card,
.mdmh-contact-card,
.mdmh-stat-card {
  background: var(--mdmh-white);
  border: 1px solid var(--mdmh-border);
  border-radius: var(--mdmh-radius);
  box-shadow: var(--mdmh-shadow-soft);
}
.mdmh-service-card {
  padding: 28px 24px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform var(--mdmh-transition), box-shadow var(--mdmh-transition), border var(--mdmh-transition);
}
.mdmh-service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(7,93,245,0.24);
  box-shadow: var(--mdmh-shadow);
}
.mdmh-service-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 20px;
  background: rgba(7,93,245,0.11);
  color: var(--mdmh-blue);
  font-size: 29px;
}
.mdmh-service-card h3 {
  margin: 0 0 10px;
  color: var(--mdmh-navy);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.mdmh-service-card p { margin: 0; color: var(--mdmh-muted); font-size: 15px; }

.mdmh-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
}
.mdmh-split__image {
  border-radius: 34px;
  padding: 28px;
  background: linear-gradient(135deg, var(--mdmh-navy), #22333f);
  box-shadow: var(--mdmh-shadow);
}
.mdmh-split__image img { display: block; width: 100%; }
.mdmh-split h2 {
  margin: 0 0 18px;
  color: var(--mdmh-navy);
  font-size: clamp(31px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 950;
}
.mdmh-split p { color: var(--mdmh-muted); margin: 0 0 20px; }
.mdmh-checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}
.mdmh-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 800;
  color: var(--mdmh-navy);
}
.mdmh-checklist li::before {
  content: "✓";
  flex: 0 0 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mdmh-blue);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.mdmh-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.mdmh-stat-card { padding: 24px; }
.mdmh-stat-card strong { display: block; font-size: 44px; line-height: 1; color: var(--mdmh-blue); letter-spacing: -0.04em; }
.mdmh-stat-card span { display: block; margin-top: 8px; color: var(--mdmh-navy); font-weight: 900; }

.mdmh-cta {
  position: relative;
  overflow: hidden;
  background: var(--mdmh-navy);
  color: #fff;
  border-radius: 34px;
  padding: clamp(34px, 6vw, 58px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
  box-shadow: var(--mdmh-shadow);
}
.mdmh-cta::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 240px;
  height: 240px;
  background: var(--mdmh-blue);
  border-radius: 50%;
  opacity: 0.35;
}
.mdmh-cta::after {
  content: "";
  position: absolute;
  right: 120px;
  bottom: -80px;
  width: 160px;
  height: 160px;
  background: var(--mdmh-yellow);
  border-radius: 50%;
  opacity: 0.75;
}
.mdmh-cta > * { position: relative; z-index: 1; }
.mdmh-cta h2,
.mdmh-cta h3 { margin: 0 0 10px; color: #fff; font-size: clamp(29px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.04em; }
.mdmh-cta p { margin: 0; color: rgba(255,255,255,0.78); }
.mdmh-cta ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 12px 22px; }
.mdmh-cta li { color: #fff; font-weight: 800; }
.mdmh-cta li::before { content: "•"; color: var(--mdmh-yellow); margin-right: 8px; }

.site-main { min-height: 55vh; }
.mdmh-page-hero {
  padding: 58px 0 42px;
  background: #fff;
  border-bottom: 1px solid var(--mdmh-border);
}
.mdmh-page-hero .entry-header { max-width: 900px; }
.mdmh-page-hero p { max-width: 720px; margin: 0; color: var(--mdmh-muted); font-size: 20px; }

.entry-content {
  width: min(var(--mdmh-container), calc(100% - 40px));
  max-width: var(--mdmh-container);
  margin: 0 auto;
  padding: 58px 0;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--mdmh-navy); letter-spacing: -0.035em; line-height: 1.15; }
.entry-content h2 { font-size: clamp(28px, 3.3vw, 42px); margin-top: 42px; }
.entry-content h3 { font-size: clamp(23px, 2.5vw, 31px); margin-top: 34px; }
.entry-content p, .entry-content li { color: var(--mdmh-text); }
.entry-content a { font-weight: 800; }
.entry-content blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 5px solid var(--mdmh-blue);
  background: var(--mdmh-bg);
  border-radius: 0 18px 18px 0;
}
.entry-content img { border-radius: 18px; }




/* Restore the original full-width blue hero banner on the Services page. */
body.page-slug-services .mdmh-page-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 34vw, 430px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(86px, 12vw, 156px) 0;
  background:
    linear-gradient(90deg, rgba(122, 148, 244, 0.92), rgba(125, 150, 243, 0.92)),
    radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 96% 92%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 28%),
    #8299f4;
  border-bottom: 0;
}
body.page-slug-services .mdmh-page-hero::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -58px;
  height: 120px;
  background: rgba(239, 247, 255, 0.92);
  transform: rotate(4deg);
  transform-origin: center;
  z-index: 0;
}
body.page-slug-services .mdmh-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 45% 98%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.08) 22%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(115deg, rgba(255, 255, 255, 0) 0 84%, rgba(255, 255, 255, 0.11) 85%, rgba(255, 255, 255, 0) 88%);
  z-index: 0;
  pointer-events: none;
}
body.page-slug-services .mdmh-page-hero .entry-header {
  position: relative;
  z-index: 1;
  max-width: var(--mdmh-container);
  text-align: center;
}
body.page-slug-services .mdmh-page-hero .eyebrow,
body.page-slug-services .mdmh-page-hero p {
  display: none !important;
}
body.page-slug-services .mdmh-page-hero .page-title {
  margin: 0;
  color: #05070e !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
}

/* Full-width page content and blue internal links */
.entry-content--full,
.single-post .entry-content,
.page .entry-content {
  width: min(var(--mdmh-container), calc(100% - 40px));
  max-width: var(--mdmh-container);
}

.entry-content a:not(.wp-block-button__link),
.single-post .entry-content a:not(.wp-block-button__link),
.single-post article a:not(.mdmh-button):not(.wp-block-button__link),
.blog .entry-content a:not(.wp-block-button__link),
.archive .entry-content a:not(.wp-block-button__link),
.mdmh-section a:not(.mdmh-button):not(.wp-block-button__link),
.mdmh-contact-card a,
.post-card h2 a,
.post-card h3 a,
.post-card .read-more {
  color: var(--mdmh-blue) !important;
}
.entry-content a:not(.wp-block-button__link):hover,
.single-post .entry-content a:not(.wp-block-button__link):hover,
.single-post article a:not(.mdmh-button):not(.wp-block-button__link):hover,
.blog .entry-content a:not(.wp-block-button__link):hover,
.archive .entry-content a:not(.wp-block-button__link):hover,
.mdmh-section a:not(.mdmh-button):not(.wp-block-button__link):hover,
.mdmh-contact-card a:hover,
.post-card h2 a:hover,
.post-card h3 a:hover,
.post-card .read-more:hover {
  color: var(--mdmh-blue-dark) !important;
  text-decoration: underline;
}

/* Safety fallback: hide the duplicate Book A Call item if it is still present in a custom primary menu. */
.main-navigation li:has(> a[href*="/book-a-call"]) {
  display: none !important;
}

/* Hide legacy blue hero/banner blocks from the old page content on key pages. */
body:is(.page-slug-services, .page-slug-blog, .page-slug-contact-us, .page-slug-contact, .page-slug-book-a-call, .blog) .entry-content > :is(.wp-block-cover, figure.wp-block-image, .wp-block-image):first-child,
body:is(.page-slug-services, .page-slug-blog, .page-slug-contact-us, .page-slug-contact, .page-slug-book-a-call, .blog) .entry-content > p:first-child:has(img),
body:is(.page-slug-services, .page-slug-blog, .page-slug-contact-us, .page-slug-contact, .page-slug-book-a-call, .blog) .entry-content > .wp-block-group:first-child:has(img),
body:is(.page-slug-services, .page-slug-blog, .page-slug-contact-us, .page-slug-contact, .page-slug-book-a-call, .blog) .entry-content > .elementor:first-child > :is(.elementor-section, .elementor-top-section, .e-con):first-child {
  display: none !important;
}

/* Keep WordPress blocks aligned with the main site width instead of a narrow article column. */
.entry-content > .alignwide,
.entry-content > .wp-block-group.alignwide,
.entry-content > .wp-block-columns.alignwide {
  max-width: var(--mdmh-container);
  margin-left: auto;
  margin-right: auto;
}
.entry-content > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card__thumb {
  display: block;
  aspect-ratio: 16/10;
  background: var(--mdmh-bg);
  overflow: hidden;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.045); }
.post-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { color: var(--mdmh-muted); font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.post-card h2, .post-card h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.18; letter-spacing: -0.035em; }
.post-card h2 a, .post-card h3 a { color: var(--mdmh-navy); }
.post-card p { color: var(--mdmh-muted); margin: 0 0 18px; }
.post-card .read-more { margin-top: auto; font-weight: 950; }


/* Single blog post hero banner with visible H1 title */
.mdmh-post-hero,
.mdmh-single-header {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 92px) 0 52px;
  background:
    radial-gradient(circle at 12% 18%, rgba(7, 93, 245, 0.12) 0, rgba(7, 93, 245, 0) 32%),
    radial-gradient(circle at 86% 14%, rgba(246, 195, 0, 0.18) 0, rgba(246, 195, 0, 0) 26%),
    linear-gradient(135deg, #eaf1ff 0%, #f7faff 55%, #ffffff 100%);
  border-bottom: 1px solid var(--mdmh-border);
}
.mdmh-post-hero::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(7, 93, 245, 0.08);
}
.mdmh-post-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}
.mdmh-post-hero__text {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}
.single-post-title,
.single-post .entry-title,
.single .entry-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
  margin: 0 0 18px;
  color: var(--mdmh-navy) !important;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 950;
}
.single-post .mdmh-post-hero .entry-header__meta,
.single-post .mdmh-single-header .entry-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  align-items: center;
  color: var(--mdmh-muted);
  font-weight: 800;
}
.single-post .mdmh-post-hero .entry-header__meta span + span::before {
  content: "•";
  color: var(--mdmh-blue);
  margin-right: 18px;
}
.mdmh-post-hero__image {
  width: min(760px, 100%);
  margin: 0 auto;
}
.single-post .mdmh-post-hero .post-thumbnail img,
.single-post .mdmh-single-header .post-thumbnail img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--mdmh-shadow-soft);
}

.single-post .entry-header__meta { color: var(--mdmh-muted); font-weight: 800; }
.single-post .post-thumbnail img { width: 100%; border-radius: 28px; margin-top: 34px; box-shadow: var(--mdmh-shadow-soft); }

.pagination, .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 44px 0 0;
}
.page-numbers, .nav-links a, .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--mdmh-border);
  border-radius: 999px;
  font-weight: 900;
  background: #fff;
}
.page-numbers.current { background: var(--mdmh-blue); color: #fff; border-color: var(--mdmh-blue); }

.mdmh-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}
.mdmh-contact-card { padding: 26px; }
.mdmh-contact-card h3 { margin: 0 0 10px; color: var(--mdmh-navy); }
.mdmh-contact-card p { margin: 0; color: var(--mdmh-muted); }
.mdmh-form-shell {
  background: var(--mdmh-bg);
  border: 1px solid var(--mdmh-border);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 42px);
}
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
  width: 100%;
  border: 1px solid var(--mdmh-border);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: var(--mdmh-text);
  outline: none;
  transition: border var(--mdmh-transition), box-shadow var(--mdmh-transition);
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(7,93,245,0.45);
  box-shadow: 0 0 0 4px rgba(7,93,245,0.11);
}
textarea { min-height: 140px; }

.site-footer {
  background: var(--mdmh-navy);
  color: rgba(255,255,255,0.76);
  margin-top: 0;
}
.site-footer__inner {
  padding: 64px 0 34px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.7fr;
  gap: 42px;
  align-items: start;
  margin-top: 44px;
}
.site-footer h2,
.site-footer h3,
.site-footer h4 { color: #fff; margin-top: 0; letter-spacing: -0.035em; }
.site-footer .footer-logo img { width: 240px; background: #fff; border-radius: 12px; padding: 8px; }
.site-footer a { color: #fff; font-weight: 850; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 34px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.newsletter-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}
.newsletter-box input { border: 0; }
.newsletter-box .mdmh-button { box-shadow: none; }

.alignwide { width: min(var(--mdmh-container), calc(100% - 40px)); max-width: var(--mdmh-container); }
.alignfull { width: 100%; max-width: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .mdmh-services-grid { grid-template-columns: repeat(2, 1fr); }
  
.blog-grid { grid-template-columns: repeat(2, 1fr); }
  .site-branding img { width: 220px; }
}

@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .menu-toggle { display: inline-flex; }
  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--mdmh-border);
    box-shadow: var(--mdmh-shadow-soft);
  }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { display: grid; gap: 12px; }
  .main-navigation a { display: block; padding: 12px 0; }
  .header-cta { display: none; }
  .mdmh-hero__grid,
  .mdmh-split,
  .mdmh-cta,
  .site-footer__grid { grid-template-columns: 1fr; }
  .mdmh-hero { padding: 58px 0 56px; }
  .mdmh-floating-card { position: static; margin-top: 16px; }
  .mdmh-contact-grid { grid-template-columns: 1fr; }

  .mdmh-post-hero { padding: 48px 0 40px; }
  .mdmh-post-hero__text { text-align: left; }
  .single-post .mdmh-post-hero .entry-header__meta { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .mdmh-container,
  .entry-content { width: min(100% - 28px, var(--mdmh-container)); }
  .site-header__inner { min-height: 78px; }
  .site-branding img { width: 190px; }
  .mdmh-services-grid,
  .blog-grid,
  .mdmh-stats-grid { grid-template-columns: 1fr; }
  .mdmh-section { padding: 58px 0; }
  .mdmh-hero__buttons { flex-direction: column; align-items: stretch; }
  .mdmh-button { width: 100%; }
  .newsletter-box { grid-template-columns: 1fr; }
  .site-footer__bottom { display: block; }
}


/* v1.0.6: Ensure every single blog post has a visible H1 inside the hero banner. */
.single .mdmh-post-hero--banner,
.single-post .mdmh-post-hero--banner {
  min-height: clamp(280px, 32vw, 430px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(70px, 10vw, 130px) 0;
  background:
    linear-gradient(rgba(126, 152, 241, 0.92), rgba(126, 152, 241, 0.92)),
    url("https://www.mydigitalmarketinghelp.com/wp-content/uploads/2023/08/banner-bg.jpg") center center / cover no-repeat;
  border-bottom: 0;
}

.single .mdmh-post-hero--banner::before,
.single-post .mdmh-post-hero--banner::before {
  display: none;
}

.single .mdmh-post-hero--banner::after,
.single-post .mdmh-post-hero--banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: linear-gradient(7deg, #ffffff 0 48%, rgba(255,255,255,0) 49% 100%);
  pointer-events: none;
}

.single .mdmh-post-hero--banner .mdmh-post-hero__inner,
.single-post .mdmh-post-hero--banner .mdmh-post-hero__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  text-align: center;
}

.single .mdmh-post-hero--banner .single-post-title,
.single-post .mdmh-post-hero--banner .single-post-title,
.single .mdmh-post-hero--banner .entry-title,
.single-post .mdmh-post-hero--banner .entry-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  color: #05070a !important;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 950;
  text-transform: none;
}

.single .mdmh-post-intro,
.single-post .mdmh-post-intro {
  padding: 48px 0 0;
  text-align: center;
}

.single .mdmh-post-intro .entry-header__meta,
.single-post .mdmh-post-intro .entry-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  align-items: center;
  color: var(--mdmh-muted);
  font-weight: 800;
  margin-bottom: 28px;
}

.single .mdmh-post-intro .entry-header__meta span + span::before,
.single-post .mdmh-post-intro .entry-header__meta span + span::before {
  content: "•";
  color: var(--mdmh-blue);
  margin-right: 18px;
}

.single .mdmh-post-featured-image,
.single-post .mdmh-post-featured-image {
  width: min(760px, 100%);
  margin: 0 auto;
}

.single .mdmh-post-featured-image img,
.single-post .mdmh-post-featured-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--mdmh-shadow-soft);
}

@media (max-width: 640px) {
  .single .mdmh-post-hero--banner,
  .single-post .mdmh-post-hero--banner {
    min-height: 260px;
    padding: 64px 0 86px;
  }
}


/* v1.0.7: hard fix for single blog post H1 visibility */
body.single-post .site-main > article > .mdmh-post-hero--banner,
body.single .site-main > article > .mdmh-post-hero--banner {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  min-height: clamp(300px, 34vw, 460px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(82px, 12vw, 150px) 20px !important;
  background:
    linear-gradient(rgba(126, 152, 241, 0.92), rgba(126, 152, 241, 0.92)),
    url("https://www.mydigitalmarketinghelp.com/wp-content/uploads/2023/08/banner-bg.jpg") center center / cover no-repeat !important;
  border: 0 !important;
  text-align: center !important;
}

body.single-post .site-main > article > .mdmh-post-hero--banner::before,
body.single .site-main > article > .mdmh-post-hero--banner::before {
  display: none !important;
  content: none !important;
}

body.single-post .site-main > article > .mdmh-post-hero--banner::after,
body.single .site-main > article > .mdmh-post-hero--banner::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -1px !important;
  height: 96px !important;
  background: linear-gradient(7deg, #ffffff 0 48%, rgba(255,255,255,0) 49% 100%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

body.single-post .mdmh-post-hero--banner .mdmh-post-hero__inner,
body.single .mdmh-post-hero--banner .mdmh-post-hero__inner {
  position: relative !important;
  z-index: 5 !important;
  width: min(1180px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
  text-align: center !important;
  display: block !important;
}

body.single-post .mdmh-post-hero--banner .mdmh-single-post-h1,
body.single-post .mdmh-post-hero--banner .single-post-title,
body.single-post .mdmh-post-hero--banner h1.entry-title,
body.single-post .mdmh-post-hero--banner h1,
body.single .mdmh-post-hero--banner .mdmh-single-post-h1,
body.single .mdmh-post-hero--banner .single-post-title,
body.single .mdmh-post-hero--banner h1.entry-title,
body.single .mdmh-post-hero--banner h1 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  margin: 0 auto !important;
  max-width: 1120px !important;
  color: #05070a !important;
  font-size: clamp(40px, 5.3vw, 72px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
  font-weight: 950 !important;
  text-align: center !important;
  text-transform: none !important;
}

body.single-post .mdmh-post-hero--banner .eyebrow,
body.single .mdmh-post-hero--banner .eyebrow {
  display: none !important;
}

body.single-post .mdmh-post-intro,
body.single .mdmh-post-intro {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
  padding: 42px 0 0 !important;
  text-align: center !important;
}

body.single-post .mdmh-post-featured-image,
body.single .mdmh-post-featured-image {
  width: min(760px, 100%) !important;
  margin: 0 auto !important;
}

body.single-post .entry-content,
body.single .entry-content {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
}

/* =========================================================
   Version 1.3.0: responsive off-canvas burger navigation
   — Drawer opens left→right to exactly 25vw on desktop,
     42vw on tablet, min(88vw,390px) on mobile.
   — Burger replaces nav & CTA on ALL viewport sizes.
   — Search bar included inside the drawer.
   ========================================================= */

body.menu-open {
  overflow: hidden;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 0 0 auto;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--mdmh-border);
  border-radius: 14px;
  background: var(--mdmh-white);
  color: var(--mdmh-navy);
  box-shadow: 0 8px 20px rgba(16, 32, 42, 0.08);
  cursor: pointer;
  transition: background var(--mdmh-transition), border-color var(--mdmh-transition), transform var(--mdmh-transition), box-shadow var(--mdmh-transition);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--mdmh-blue);
  border-color: var(--mdmh-blue);
  color: var(--mdmh-white);
  box-shadow: 0 12px 24px rgba(7, 93, 245, 0.22);
  transform: translateY(-1px);
}

.menu-toggle:focus-visible,
.menu-drawer__close:focus-visible,
.menu-drawer a:focus-visible,
.menu-drawer input:focus-visible,
.menu-drawer button:focus-visible {
  outline: 3px solid rgba(7, 93, 245, 0.35);
  outline-offset: 3px;
}

.menu-toggle__icon {
  width: 23px;
  display: grid;
  gap: 5px;
}

.menu-toggle__icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 20, 29, 0.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, visibility 0s linear 280ms;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.menu-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10001;
  width: 25vw;
  min-width: 280px;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  background: var(--mdmh-white);
  color: var(--mdmh-text);
  box-shadow: 24px 0 60px rgba(8, 20, 29, 0.24);
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 320ms;
  overscroll-behavior: contain;
}

.menu-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.menu-drawer__header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--mdmh-border);
  background: var(--mdmh-bg);
}

/* Logo shown inside the drawer */
.menu-drawer__brand {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.menu-drawer__brand img,
.menu-drawer__brand .custom-logo {
  max-height: 48px;
  width: auto;
  display: block;
}
.menu-drawer__logo {
  max-height: 48px;
  width: auto;
}

/* (menu-drawer__home removed in v1.3.0; brand logo used instead) */

.menu-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mdmh-border);
  border-radius: 50%;
  background: var(--mdmh-white);
  color: var(--mdmh-navy);
  cursor: pointer;
  transition: background var(--mdmh-transition), color var(--mdmh-transition), border-color var(--mdmh-transition), transform var(--mdmh-transition);
}

.menu-drawer__close svg {
  pointer-events: none;
}

.menu-drawer__close:hover {
  background: var(--mdmh-blue);
  border-color: var(--mdmh-blue);
  color: var(--mdmh-white);
  transform: rotate(4deg);
}

.menu-drawer__content {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 84px);
  padding: 28px 24px 32px;
}

.menu-drawer__heading {
  margin: 0 0 10px;
  color: var(--mdmh-navy);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.menu-drawer__search {
  margin-bottom: 26px;
}

.menu-drawer .search-form {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.menu-drawer .search-form label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.menu-drawer .search-field {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--mdmh-border);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: var(--mdmh-white);
  color: var(--mdmh-text);
  outline: 0;
}

.menu-drawer .search-field:focus {
  border-color: var(--mdmh-blue);
  box-shadow: inset 0 0 0 1px var(--mdmh-blue);
}

.menu-drawer .search-submit {
  width: auto;
  min-width: 86px;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--mdmh-blue);
  border-radius: 0 12px 12px 0;
  background: var(--mdmh-blue);
  color: var(--mdmh-white) !important;
  box-shadow: none;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.menu-drawer .search-submit:hover {
  background: var(--mdmh-blue-dark);
  border-color: var(--mdmh-blue-dark);
  transform: none;
}

.menu-drawer .main-navigation {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.menu-drawer .main-navigation ul {
  display: grid;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-drawer .main-navigation li {
  width: 100%;
  border-bottom: 1px solid var(--mdmh-border);
}

.menu-drawer .main-navigation a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 4px;
  color: var(--mdmh-navy);
  font-size: clamp(17px, 1.15vw, 20px);
  font-weight: 850;
  line-height: 1.3;
  position: relative;
  transition: color var(--mdmh-transition), padding var(--mdmh-transition), background var(--mdmh-transition);
}

.menu-drawer .main-navigation a::after {
  content: "→";
  position: static;
  width: auto;
  height: auto;
  margin-left: 14px;
  background: transparent;
  color: var(--mdmh-blue);
  font-size: 19px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--mdmh-transition), transform var(--mdmh-transition);
}

.menu-drawer .main-navigation a:hover,
.menu-drawer .main-navigation .current-menu-item > a,
.menu-drawer .main-navigation .current_page_item > a {
  padding-left: 10px;
  color: var(--mdmh-blue);
}

.menu-drawer .main-navigation a:hover::after,
.menu-drawer .main-navigation .current-menu-item > a::after,
.menu-drawer .main-navigation .current_page_item > a::after {
  width: auto;
  opacity: 1;
  transform: translateX(0);
}

.menu-drawer .main-navigation .sub-menu {
  display: grid;
  gap: 0;
  padding: 0 0 10px 16px;
}

.menu-drawer .main-navigation .sub-menu li {
  border-bottom: 0;
}

.menu-drawer .main-navigation .sub-menu a {
  padding: 10px 4px;
  font-size: 15px;
  font-weight: 750;
}

.menu-drawer__cta {
  margin-top: auto;
  padding-top: 30px;
}

.menu-drawer__cta .mdmh-button {
  width: 100%;
}

@media (max-width: 1199px) {
  .menu-drawer {
    width: 42vw;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    gap: 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .menu-drawer .main-navigation {
    position: static;
    inset: auto;
  }
}

@media (max-width: 640px) {
  .site-header__actions {
    gap: 8px;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .menu-drawer {
    width: min(88vw, 390px);
  }

  .menu-drawer__header {
    min-height: 74px;
    padding: 14px 18px;
  }

  .menu-drawer__content {
    min-height: calc(100dvh - 74px);
    padding: 22px 18px 26px;
  }

  .menu-drawer__brand img,
  .menu-drawer__brand .custom-logo {
    max-height: 38px;
  }

  .menu-drawer .search-submit {
    min-width: 78px;
    padding: 0 12px;
  }

  .menu-drawer .main-navigation a {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-drawer,
  .menu-overlay,
  .menu-toggle,
  .menu-drawer__close,
  .menu-drawer .main-navigation a,
  .menu-drawer .main-navigation a::after {
    transition: none !important;
  }
}

/* Keep the WordPress admin toolbar visible while testing the front end. */
.admin-bar .menu-overlay,
.admin-bar .menu-drawer {
  top: 32px;
}

.admin-bar .menu-drawer {
  height: calc(100dvh - 32px);
}

.admin-bar .menu-drawer__content {
  min-height: calc(100dvh - 116px);
}

@media (max-width: 782px) {
  .admin-bar .menu-overlay,
  .admin-bar .menu-drawer {
    top: 46px;
  }

  .admin-bar .menu-drawer {
    height: calc(100dvh - 46px);
  }

  .admin-bar .menu-drawer__content {
    min-height: calc(100dvh - 120px);
  }
}


/* =========================================================
   Version 1.0.9: show the burger navigation on every device
   ========================================================= */

/* The desktop, tablet, and mobile headers all use the same burger button. */
.site-header .site-header__actions {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.site-header .menu-toggle {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  flex: 0 0 auto;
}

/* Never show a traditional horizontal navigation inside the header. */
.site-header .main-navigation,
.site-header .menu-primary-container,
.site-header #primary-menu {
  display: none !important;
}

/* Keep the navigation visible only when it is inside the slide-out drawer. */
.menu-drawer .main-navigation,
.menu-drawer .menu-primary-container,
.menu-drawer #primary-menu {
  display: block !important;
}

@media (min-width: 901px) {
  .site-header .menu-toggle {
    display: inline-flex !important;
  }

  /* One quarter of the viewport on desktop, with practical size limits. */
  .menu-drawer {
    width: clamp(320px, 25vw, 470px);
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .site-header .menu-toggle {
    display: inline-flex !important;
  }

  .menu-drawer {
    width: min(55vw, 480px);
  }
}

@media (max-width: 640px) {
  .site-header .menu-toggle {
    display: inline-flex !important;
  }
}


/* =========================================================
   Version 1.1.0: guaranteed all-device burger header
   ========================================================= */

/* The header contains only the logo and burger control. */
.site-header .site-header__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.site-header .site-branding {
  flex: 0 1 auto !important;
  min-width: 0;
}

.site-header .site-header__actions {
  display: flex !important;
  align-items: center !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
}

.site-header .menu-toggle {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Hide every legacy desktop/tablet/mobile menu and CTA that may remain in the header. */
.site-header > .main-navigation,
.site-header .site-header__inner > .main-navigation,
.site-header .site-header__inner > .menu-primary-container,
.site-header .site-header__inner > #primary-menu,
.site-header .header-cta {
  display: none !important;
  visibility: hidden !important;
}

/* The menu exists only inside the off-canvas drawer. */
#site-menu-drawer.menu-drawer {
  display: block !important;
  width: clamp(310px, 25vw, 480px) !important;
}

#site-menu-drawer .main-navigation,
#site-menu-drawer .menu-primary-container,
#site-menu-drawer #primary-menu {
  display: block !important;
  visibility: visible !important;
}

@media (min-width: 641px) and (max-width: 1024px) {
  #site-menu-drawer.menu-drawer {
    width: min(55vw, 500px) !important;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    min-height: 74px;
  }

  .site-branding img {
    width: min(190px, 58vw);
  }

  #site-menu-drawer.menu-drawer {
    width: min(90vw, 410px) !important;
  }
}

.mdmh-header-logo-fallback {
  display: inline-flex;
  align-items: center;
}

.mdmh-header-logo-fallback img {
  display: block;
  width: 250px;
  max-height: 68px;
  object-fit: contain;
}

/* =========================================================
   v1.3.1 NUCLEAR OVERRIDE — hide any nav / CTA that is not
   inside #site-menu-drawer, regardless of source or specificity.
   Targets: legacy theme output, Elementor headers, widgets,
   page-builders, and any plugin that echoes menus.
   ========================================================= */

/* 1. Hide ALL .main-navigation elements everywhere in the DOM … */
.main-navigation,
nav.main-navigation,
#primary-navigation,
#site-navigation:not(#site-menu-drawer *),
.header-cta,
.site-header__nav,
.site-header .header-cta,
.site-header__inner .main-navigation,
.site-header__inner nav,
.site-header__inner #primary-menu,
.site-header__inner .menu-primary-container,
.site-header__inner ul.menu,
.site-header__inner ul#primary-menu {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
}

/* 2. … then un-hide the exact same elements when they live inside the drawer. */
#site-menu-drawer .main-navigation,
#site-menu-drawer nav.main-navigation,
#site-menu-drawer #site-navigation,
#site-menu-drawer .menu-primary-container,
#site-menu-drawer #primary-menu,
#site-menu-drawer ul.menu,
#site-menu-drawer ul#primary-menu {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
}


/* =========================================================
   Version 1.3.2: menu-only update
   - Keeps the existing theme, templates, typography, and page styling.
   - Shows the burger and Book A Call together in the header.
   - Uses the dark off-canvas drawer design on every screen size.
   ========================================================= */

/* Keep the Book A Call button visible beside the burger on every device. */
.site-header .mdmh-header-book-button {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: none;
  flex: 0 0 auto;
}

.site-header .mdmh-header-book-button:hover {
  transform: none;
}

/* Dark drawer matching the approved preview. */
#site-menu-drawer.menu-drawer {
  background: #102430;
  color: #ffffff;
  box-shadow: 24px 0 60px rgba(8, 20, 29, 0.36);
}

#site-menu-drawer .menu-drawer__header {
  min-height: 94px;
  padding: 18px 20px;
  background: #102430;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

#site-menu-drawer .menu-drawer__brand {
  flex: 0 1 auto;
  max-width: min(210px, calc(100% - 66px));
  padding: 8px 11px;
  border-radius: 8px;
  background: #ffffff;
}

#site-menu-drawer .menu-drawer__brand img,
#site-menu-drawer .menu-drawer__brand .custom-logo {
  max-width: 100%;
  max-height: 40px;
}

#site-menu-drawer .menu-drawer__close {
  border-color: rgba(255, 255, 255, 0.9);
  background: transparent;
  color: #ffffff;
}

#site-menu-drawer .menu-drawer__close:hover {
  border-color: #f6c300;
  background: #f6c300;
  color: #102430;
}

#site-menu-drawer .menu-drawer__content {
  min-height: calc(100dvh - 94px);
  padding: 26px 20px 30px;
}

#site-menu-drawer .menu-drawer__heading {
  margin-bottom: 12px;
  color: #a9c8ef;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

#site-menu-drawer .menu-drawer__navigation {
  margin-bottom: 34px;
}

#site-menu-drawer .main-navigation li {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

#site-menu-drawer .main-navigation a {
  padding: 16px 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(20px, 1.45vw, 27px);
  font-weight: 700;
}

#site-menu-drawer .main-navigation a::after {
  color: #f6c300;
}

#site-menu-drawer .main-navigation a:hover,
#site-menu-drawer .main-navigation .current-menu-item > a,
#site-menu-drawer .main-navigation .current_page_item > a {
  color: #f6c300;
}

#site-menu-drawer .menu-drawer__search {
  margin-top: auto;
  margin-bottom: 0;
}

#site-menu-drawer .search-field {
  border-color: rgba(255, 255, 255, 0.32);
  background: #ffffff;
  color: #102430;
}

#site-menu-drawer .search-submit {
  border-color: #f6c300;
  background: #f6c300;
  color: #102430 !important;
}

#site-menu-drawer .search-submit:hover {
  border-color: #ffd938;
  background: #ffd938;
  color: #102430 !important;
}

/* Responsive header: logo, burger, and CTA stay visible without wrapping. */
@media (max-width: 900px) {
  .site-header .site-header__inner {
    gap: 12px !important;
  }

  .site-header .site-header__actions {
    gap: 10px !important;
  }

  .site-header .mdmh-header-book-button {
    min-height: 46px;
    padding: 0 18px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .site-header .site-header__inner {
    min-height: 74px;
    gap: 8px !important;
  }

  .site-header .site-branding img,
  .site-header .mdmh-header-logo-fallback img {
    width: min(160px, 43vw);
  }

  .site-header .site-header__actions {
    gap: 6px !important;
  }

  .site-header .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .site-header .mdmh-header-book-button {
    width: auto !important;
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  #site-menu-drawer .menu-drawer__header {
    min-height: 82px;
    padding: 15px 16px;
  }

  #site-menu-drawer .menu-drawer__content {
    min-height: calc(100dvh - 82px);
    padding: 22px 18px 26px;
  }
}

@media (max-width: 380px) {
  .site-header .site-branding img,
  .site-header .mdmh-header-logo-fallback img {
    width: min(132px, 39vw);
  }

  .site-header .mdmh-header-book-button {
    padding: 0 10px;
    font-size: 12px;
  }

  .site-header .mdmh-header-book-button__arrow {
    display: none;
  }
}
