:root {
  --dm-ink: #121a1f;
  --dm-muted: #59676e;
  --dm-line: #d8dedc;
  --dm-bg: #f6f4ef;
  --dm-panel: #ffffff;
  --dm-orange: #e66f1f;
  --dm-orange-dark: #b94f13;
  --dm-yellow: #ffca3a;
  --dm-slate: #1d2a31;
  --dm-navy: #13242d;
  --dm-green: #2b584c;
}
html { scroll-behavior: smooth; }
body { color: var(--dm-ink); background: var(--dm-bg); }
.entry-content:has(.dm-page), .content-area:has(.dm-page), .site-main:has(.dm-page) { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.dm-page { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); overflow-x: clip; background: var(--dm-bg); color: var(--dm-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.62; }
.dm-page * { box-sizing: border-box; }
.dm-page a { color: var(--dm-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-header, #masthead { position: sticky; top: 0; z-index: 900; box-shadow: 0 8px 28px rgba(18,26,31,.08); }
.dm-topbar { background: var(--dm-slate); color: #fff; font-size: 14px; }
.dm-topbar__inner { width: min(1240px, calc(100% - 36px)); margin: 0 auto; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dm-topbar a { color: #fff; font-weight: 800; text-decoration: none; }
.dm-topbar__meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.dm-topbar__pill { color: var(--dm-yellow); font-weight: 900; }
.dm-section { padding: clamp(58px, 8vw, 108px) clamp(18px, 4vw, 56px); }
.dm-wrap { width: min(1240px, 100%); margin: 0 auto; }
.dm-hero { position: relative; min-height: clamp(640px, 82vh, 860px); display: grid; align-items: center; color: #fff; background-size: cover; background-position: center; padding: clamp(72px, 8vw, 124px) clamp(18px, 4vw, 56px); }
.dm-hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,12,15,.94) 0%, rgba(13,24,28,.84) 45%, rgba(13,24,28,.36) 100%); }
.dm-hero:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: linear-gradient(90deg, var(--dm-orange), var(--dm-yellow), transparent 64%); }
.dm-hero .dm-wrap { position: relative; z-index: 1; }
.dm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, 430px); gap: clamp(28px, 5vw, 70px); align-items: center; }
.dm-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #ffd7b8; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 900; }
.dm-kicker:before { content: ""; width: 38px; height: 3px; background: var(--dm-orange); }
.dm-hero h1, .dm-title h1 { margin: 0 0 22px; max-width: 850px; font-size: clamp(42px, 7vw, 92px); line-height: .95; letter-spacing: 0; color: #fff; }
.dm-hero p, .dm-title p { max-width: 760px; color: rgba(255,255,255,.91); font-size: clamp(18px, 2vw, 22px); }
.dm-title { background: linear-gradient(135deg, rgba(230,111,31,.12), transparent 38%), var(--dm-slate); color: #fff; padding: clamp(72px, 9vw, 122px) clamp(18px, 4vw, 56px); }
.dm-title.dm-visual-hero { position: relative; overflow: hidden; min-height: clamp(430px, 56vh, 620px); display: grid; align-items: center; background-size: cover; background-position: center; }
.dm-title.dm-visual-hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,12,15,.94) 0%, rgba(13,24,28,.86) 48%, rgba(13,24,28,.38) 100%); }
.dm-title.dm-visual-hero:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--dm-orange), var(--dm-yellow), transparent 68%); }
.dm-title.dm-visual-hero .dm-wrap { position: relative; z-index: 1; }
.dm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 20px; border-radius: 6px; border: 1px solid var(--dm-orange); background: var(--dm-orange); color: #fff !important; font-weight: 900; text-decoration: none !important; box-shadow: 0 14px 30px rgba(185,79,19,.22); }
.dm-button:hover { background: var(--dm-orange-dark); border-color: var(--dm-orange-dark); }
.dm-button.secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.72); box-shadow: none; }
.dm-button.dark { background: var(--dm-slate); border-color: var(--dm-slate); }
.dm-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 34px; max-width: 920px; }
.dm-trust span { border-left: 3px solid var(--dm-orange); padding: 8px 0 8px 14px; color: rgba(255,255,255,.92); font-weight: 800; }
.dm-form-card, .dm-card, .dm-quote-panel { background: var(--dm-panel); color: var(--dm-ink); border: 1px solid var(--dm-line); border-radius: 8px; box-shadow: 0 20px 54px rgba(18,26,31,.09); padding: clamp(22px, 3vw, 34px); }
.dm-form-card { box-shadow: 0 28px 74px rgba(0,0,0,.32); }
.dm-form-card h2, .dm-quote-panel h2 { color: var(--dm-ink); margin: 0 0 8px; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.1; }
.dm-form-card p, .dm-quote-panel p { color: var(--dm-muted); font-size: 15px; margin: 0 0 16px; }
.dm-page .ff-el-group { margin-bottom: 13px !important; }
.dm-page .ff-el-input--label label, .dm-page .ff-el-form-check-label { color: var(--dm-ink); font-weight: 800; font-size: 14px; }
.dm-page .ff-el-form-control { min-height: 46px; border-radius: 6px; border: 1px solid #c7d0cf; background: #fff; color: var(--dm-ink); }
.dm-page textarea.ff-el-form-control { min-height: 100px; }
.dm-page .ff-btn-submit { width: 100%; min-height: 50px; border-radius: 6px !important; background: var(--dm-orange) !important; border-color: var(--dm-orange) !important; color: #fff !important; font-weight: 900 !important; }
.dm-page .ff-message-success { border-color: var(--dm-green); color: var(--dm-ink); }
.dm-eyebrow { margin: 0 0 10px; color: var(--dm-orange); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 900; }
.dm-section h2 { margin: 0 0 18px; font-size: clamp(31px, 4.8vw, 58px); line-height: 1.04; letter-spacing: 0; }
.dm-section h3 { margin-top: 0; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.15; }
.dm-lead { max-width: 850px; color: var(--dm-muted); font-size: clamp(18px, 1.8vw, 21px); }
.dm-soft { background: #e8ede9; }
.dm-dark { background: linear-gradient(135deg, rgba(230,111,31,.10), transparent 42%), var(--dm-slate); color: #fff; }
.dm-dark .dm-eyebrow { color: var(--dm-yellow); }
.dm-dark h2, .dm-dark h3 { color: #fff; }
.dm-dark .dm-lead { color: rgba(255,255,255,.92); }
.dm-dark .dm-card { color: var(--dm-ink); }
.dm-cta { background: linear-gradient(135deg, var(--dm-green), #162d28); color: #fff; }
.dm-cta h2, .dm-cta h3 { color: #fff; }
.dm-cta p, .dm-cta li { color: rgba(255,255,255,.9); }
.dm-cta .dm-lead { color: rgba(255,255,255,.92); }
.dm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.dm-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dm-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dm-card p:last-child, .dm-card ul:last-child { margin-bottom: 0; }
.dm-link-card { display: block; min-height: 100%; background: #fff; border: 1px solid var(--dm-line); border-radius: 8px; padding: 22px; text-decoration: none !important; color: var(--dm-ink) !important; box-shadow: 0 12px 32px rgba(18,26,31,.055); }
.dm-link-card strong { display: block; margin-bottom: 6px; font-size: 20px; }
.dm-link-card span { color: var(--dm-muted); }
.dm-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.dm-media { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid rgba(18,26,31,.12); box-shadow: 0 24px 58px rgba(18,26,31,.14); background: #d8dedc; }
.dm-list { display: grid; gap: 11px; padding: 0; list-style: none; }
.dm-list li { position: relative; padding-left: 30px; }
.dm-list li:before { content: ""; position: absolute; left: 0; top: .68em; width: 10px; height: 10px; border-radius: 50%; background: var(--dm-orange); }
.dm-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--dm-line); border-radius: 8px; overflow: hidden; display: table; }
.dm-table th, .dm-table td { padding: 16px; border-bottom: 1px solid var(--dm-line); text-align: left; vertical-align: top; }
.dm-table th { background: var(--dm-slate); color: #fff; }
.dm-process { counter-reset: step; display: grid; gap: 16px; }
.dm-step { position: relative; padding: 22px 22px 22px 72px; background: #fff; border: 1px solid var(--dm-line); border-radius: 8px; }
.dm-step:before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--dm-orange); color: #fff; display: grid; place-items: center; font-weight: 900; }
.dm-faq details { background: #fff; border: 1px solid var(--dm-line); border-radius: 8px; padding: 20px 22px; box-shadow: 0 10px 28px rgba(18,26,31,.05); }
.dm-faq details + details { margin-top: 12px; }
.dm-faq summary { cursor: pointer; font-weight: 900; }
.dm-area-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.dm-area-list li { background: #fff; border: 1px solid var(--dm-line); border-radius: 999px; padding: 9px 14px; font-weight: 800; }
.dm-note { background: #fff7e8; border-left: 5px solid var(--dm-orange); padding: 18px 20px; border-radius: 6px; color: var(--dm-ink); }
.dm-footer { background: #101820; color: #fff; padding: 56px 22px; }
.dm-footer__inner { width: min(1240px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; }
.dm-footer h2, .dm-footer h3 { color: #fff; margin-top: 0; }
.dm-footer p, .dm-footer li { color: rgba(255,255,255,.78); }
.dm-footer a { color: #fff; text-decoration: none; }
.dm-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dm-mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; grid-template-columns: 1fr 1fr; background: #fff; border-top: 1px solid var(--dm-line); box-shadow: 0 -12px 28px rgba(18,26,31,.14); }
.dm-mobile-cta a { min-height: 56px; display: flex; align-items: center; justify-content: center; font-weight: 900; text-decoration: none; color: var(--dm-ink); }
.dm-mobile-cta a:first-child { background: var(--dm-orange); color: #fff; }
@media (max-width: 980px) {
  .dm-hero { min-height: auto; }
  .dm-hero-grid, .dm-trust, .dm-grid, .dm-grid.four, .dm-grid.two, .dm-split, .dm-footer__inner { grid-template-columns: 1fr; }
  .dm-hero:before { background: rgba(7,12,15,.78); }
  .dm-topbar__inner { align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .dm-footer { padding-bottom: 86px; }
  .dm-mobile-cta { display: grid; }
}
@media (max-width: 560px) {
  .dm-section, .dm-hero, .dm-title { padding-left: 18px; padding-right: 18px; }
  .dm-actions .dm-button, .dm-button { width: 100%; }
  .dm-table { display: block; overflow-x: auto; }
  html, body { overflow-x: hidden; }
  .dm-page { width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; overflow-x: clip; }
  .dm-page .dm-section, .dm-page .dm-title { overflow-x: hidden; }
  .dm-page .dm-wrap, .dm-page .dm-grid, .dm-page .dm-split, .dm-page .dm-card, .dm-page .dm-step, .dm-page .dm-actions { min-width: 0; max-width: 100%; }
  .dm-page .dm-title > .dm-wrap, .dm-page .dm-section > .dm-wrap { width: calc(100vw - 36px) !important; max-width: calc(100vw - 36px) !important; }
  .dm-title h1 { font-size: clamp(32px, 9vw, 38px); overflow-wrap: anywhere; }
  .dm-section h2 { font-size: clamp(27px, 8vw, 36px); overflow-wrap: anywhere; }
  .dm-title p, .dm-lead, .dm-card p, .dm-step p, .dm-link-card span { max-width: 100%; overflow-wrap: break-word; }
}

/* Pro Demolition Melbourne Gutenberg refinements */
.dm-gb-quote .dm-card { align-self: start; }
.dm-compact-form .ff-el-group { margin-bottom: 8px !important; }
.dm-compact-form .ff-el-input--label { margin-bottom: 3px !important; }
.dm-compact-form .ff-el-input--label label { font-size: 12px !important; line-height: 1.2 !important; }
.dm-compact-form .ff-el-form-control { min-height: 38px !important; padding: 8px 10px !important; font-size: 14px !important; }
.dm-compact-form textarea.ff-el-form-control { min-height: 72px !important; }
.dm-compact-form .ff-btn-submit { min-height: 40px !important; padding: 9px 14px !important; font-size: 14px !important; }
.dm-map-section { background: #e8ede9; }
.dm-map-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.dm-map-card { overflow: hidden; border-radius: 8px; border: 1px solid rgba(18,26,31,.14); box-shadow: 0 24px 58px rgba(18,26,31,.14); background: #fff; }
.dm-map-card iframe { display: block; width: 100%; height: clamp(360px, 42vw, 520px); border: 0; }
.dm-map-note { margin-top: 18px; color: var(--dm-muted); font-size: 14px; }
.dm-dark .dm-process { counter-reset: step; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.dm-dark .dm-process:before { content: ""; position: absolute; left: 50%; top: 16px; bottom: 16px; width: 2px; background: linear-gradient(to bottom, var(--dm-yellow), rgba(255,255,255,.74), var(--dm-orange)); transform: translateX(-50%); opacity: .95; }
.dm-dark .dm-step { position: relative; min-height: 168px; padding: 28px 28px 26px 86px; background: #f9fbf8; color: var(--dm-ink); border: 1px solid rgba(255,255,255,.72); border-radius: 8px; box-shadow: 0 18px 42px rgba(0,0,0,.24); backdrop-filter: none; }
.dm-dark .dm-step:before { content: counter(step, decimal-leading-zero); position: absolute; left: 24px; top: 28px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; background: #101820; border: 2px solid var(--dm-orange); color: #fff; font-weight: 950; font-size: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.24); }
.dm-dark .dm-step h3 { color: #101820; margin: 0 0 9px; font-size: clamp(20px, 2vw, 25px); }
.dm-dark .dm-step p { color: #33454d; margin: 0; max-width: 46ch; }
@media (max-width: 980px) {
  .dm-map-grid, .dm-dark .dm-process { grid-template-columns: 1fr; }
  .dm-map-card iframe { height: 380px; }
  .dm-dark .dm-process:before { left: 27px; }
  .dm-dark .dm-step { min-height: auto; padding: 22px 20px 22px 78px; }
  .dm-dark .dm-step:before { left: 18px; top: 22px; }
}

/* Gutenberg block layout support and asbestos cost page polish */
.dm-page > .wp-block-group__inner-container { max-width: none !important; width: 100% !important; }
.dm-page .wp-block-group__inner-container > .dm-section:first-child { margin-top: 0; }
.dm-page .dm-title > .wp-block-group__inner-container,
.dm-page .dm-section > .wp-block-group__inner-container { width: min(1240px, 100%); margin: 0 auto; }
.dm-page .dm-title > .wp-block-group__inner-container > .dm-wrap,
.dm-page .dm-section > .wp-block-group__inner-container > .dm-wrap { width: 100%; }
.dm-wrap.dm-split > .wp-block-group__inner-container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.dm-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.dm-grid.two > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dm-grid.four > .wp-block-group__inner-container { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dm-cost-hero { background: radial-gradient(circle at 85% 10%, rgba(230,111,31,.22), transparent 30%), linear-gradient(135deg, #142129 0%, #1d2a31 64%, #101820 100%); }
.dm-cost-hero .dm-cost-hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; box-shadow: 0 26px 70px rgba(0,0,0,.28); }
.dm-cost-hero-card p, .dm-cost-hero-card li { color: rgba(255,255,255,.86); }
.dm-cost-hero-card h2, .dm-cost-hero-card h3 { color: #fff; }
.dm-cost-hero-card .dm-list li:before { background: var(--dm-yellow); }
.dm-actions .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 20px; border-radius: 6px; border: 1px solid var(--dm-orange); background: var(--dm-orange); color: #fff !important; font-weight: 900; text-decoration: none !important; box-shadow: 0 14px 30px rgba(185,79,19,.22); }
.dm-actions .is-style-outline .wp-block-button__link { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.72) !important; box-shadow: none; color: #fff !important; }
.dm-cost-strip { background: #fff; border-top: 1px solid var(--dm-line); border-bottom: 1px solid var(--dm-line); padding-top: 28px; padding-bottom: 28px; }
.dm-cost-strip .dm-grid { gap: 0; border: 1px solid var(--dm-line); border-radius: 8px; overflow: hidden; background: #fff; }
.dm-cost-strip .dm-card { border: 0; border-radius: 0; box-shadow: none; border-right: 1px solid var(--dm-line); padding: 24px; }
.dm-cost-strip .dm-card:last-child { border-right: 0; }
.dm-factor-card { position: relative; overflow: hidden; }
.dm-factor-card:before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--dm-orange); }
.dm-factor-card h3 { margin-bottom: 8px; }
.dm-media-frame { margin: 0; }
.dm-media-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid rgba(18,26,31,.12); box-shadow: 0 24px 58px rgba(18,26,31,.14); background: #d8dedc; }
.dm-safety-panel { background: #fff7e8; border: 1px solid #f1c38e; border-left: 6px solid var(--dm-orange); border-radius: 8px; padding: clamp(22px, 3vw, 34px); }
.dm-safety-panel h3 { color: var(--dm-ink); }
.dm-mini-steps { display: grid; gap: 14px; counter-reset: step; }
.dm-mini-step { position: relative; padding: 20px 20px 20px 68px; background: #fff; border: 1px solid var(--dm-line); border-radius: 8px; }
.dm-mini-step:before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 20px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; background: var(--dm-slate); color: #fff; font-weight: 900; font-size: 13px; }
.dm-inline-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dm-inline-links a { display: inline-flex; align-items: center; min-height: 38px; border: 1px solid var(--dm-line); border-radius: 999px; padding: 8px 13px; background: #fff; color: var(--dm-ink) !important; font-weight: 800; text-decoration: none !important; }
@media (max-width: 980px) {
  .dm-wrap.dm-split > .wp-block-group__inner-container { grid-template-columns: 1fr; }
  .dm-grid > .wp-block-group__inner-container,
  .dm-grid.two > .wp-block-group__inner-container,
  .dm-grid.four > .wp-block-group__inner-container { grid-template-columns: 1fr; }
  .dm-cost-strip .dm-grid { grid-template-columns: 1fr; }
  .dm-cost-strip .dm-card { border-right: 0; border-bottom: 1px solid var(--dm-line); }
  .dm-cost-strip .dm-card:last-child { border-bottom: 0; }
}

.dm-page .dm-title > .dm-wrap,
.dm-page .dm-section > .dm-wrap {
  width: min(1240px, calc(100vw - 44px)) !important;
  max-width: calc(100vw - 44px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.dm-page .dm-grid,
.dm-page .dm-split,
.dm-page .dm-card,
.dm-page .dm-link-card,
.dm-page .dm-actions {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 560px) {
  .dm-page .dm-title > .dm-wrap,
  .dm-page .dm-section > .dm-wrap {
    width: calc(100vw - 44px) !important;
    max-width: calc(100vw - 44px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .dm-page .dm-grid,
  .dm-page .dm-split {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .dm-page .dm-card,
  .dm-page .dm-link-card,
  .dm-page .dm-actions,
  .dm-page .dm-button {
    width: 100% !important;
    max-width: 100% !important;
  }
  .dm-page .dm-title h1 {
    font-size: 34px !important;
    line-height: 1.08 !important;
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  .dm-page .dm-title h1 .dm-h1-line { display: block; }
  .dm-page .dm-title p,
  .dm-page .dm-card p,
  .dm-page .dm-lead,
  .dm-page .dm-step p {
    font-size: 16px !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
  }
}

/* Mobile containment fixes for Kadence header and service-page heroes */
html,
body,
#page,
.site,
.site-content,
.content-area,
.site-main,
.entry-content {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}
.site-header,
#masthead,
.site-header-wrap,
.site-header-inner-wrap,
.site-header-row-container,
.site-header-row-container-inner,
.site-container {
  max-width: 100vw !important;
}
@media (max-width: 560px) {
  .site-header .site-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .site-header .brand.has-logo-image {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 28px) !important;
    overflow: hidden !important;
  }
  .site-header .custom-logo {
    width: 52px !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }
  .site-header .site-title-wrap {
    min-width: 0 !important;
    max-width: calc(100vw - 98px) !important;
    overflow: hidden !important;
  }
  .site-header .site-title {
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }
  .entry-content:has(.dm-page),
  .content-area:has(.dm-page),
  .site-main:has(.dm-page) {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .dm-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
  }
  .dm-page .dm-title,
  .dm-page .dm-section {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  .dm-page .dm-title > .dm-wrap,
  .dm-page .dm-section > .dm-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  .dm-page h1,
  .dm-page h2,
  .dm-page h3,
  .dm-page p,
  .dm-page li,
  .dm-page a {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
  }
}
@media (max-width: 560px) {
  .dm-page .dm-title h1 {
    max-width: 300px !important;
    font-size: 32px !important;
  }
  .dm-page .dm-title p,
  .dm-page .dm-title .dm-actions {
    max-width: 310px !important;
  }
}
@media (max-width: 380px) {
  .site-header .site-title { font-size: 19px !important; }
  .dm-page .dm-title h1 { font-size: 30px !important; max-width: 280px !important; }
  .dm-page .dm-title p,
  .dm-page .dm-title .dm-actions { max-width: 286px !important; }
}

/* Sitewide polish: remove Kadence header-to-hero gap and compact all lead forms */
body.page .site-content,
body.page .content-container,
body.page .content-container.site-container,
body.page .content-area,
body.page .site-main,
body.page .entry,
body.page .entry-content-wrap,
body.page .entry-content,
body.page .post-thumbnail,
body.page .entry-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.page .content-container.site-container,
body.page .site-container.content-container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.page .entry-content > link:first-child,
body.page .entry-content > link:first-child + .dm-page,
body.page .entry-content > .dm-page:first-child,
body.page .entry-content > main.dm-page:first-child {
  margin-top: 0 !important;
}
body.page .dm-page .dm-hero,
body.page .dm-page .dm-title {
  margin-top: 0 !important;
}
.dm-form-card,
.dm-quote-panel {
  border-radius: 8px;
  border-color: #d8dfdc;
  padding: clamp(18px, 2.2vw, 26px) !important;
  box-shadow: 0 18px 42px rgba(18,26,31,.12) !important;
}
.dm-form-card h2,
.dm-quote-panel h2 {
  margin-bottom: 6px !important;
  font-size: clamp(21px, 2vw, 26px) !important;
  line-height: 1.12 !important;
}
.dm-form-card p,
.dm-quote-panel p {
  margin-bottom: 12px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}
.dm-page .frm-fluent-form,
.dm-page .fluentform,
.dm-page form.frm-fluent-form {
  margin: 0 !important;
}
.dm-page .ff-el-group,
.dm-page .ff-el-input--content,
.dm-page .ff-el-form-check,
.dm-page .ff-el-section-break,
.dm-page .ff_submit_btn_wrapper {
  max-width: 100% !important;
}
.dm-page .ff-el-group {
  margin-bottom: 8px !important;
}
.dm-page .ff-el-input--label {
  margin-bottom: 3px !important;
}
.dm-page .ff-el-input--label label,
.dm-page .ff-el-form-check-label {
  color: #172126 !important;
  font-size: 12.5px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
}
.dm-page .ff-el-form-control,
.dm-page input.ff-el-form-control,
.dm-page select.ff-el-form-control {
  min-height: 38px !important;
  height: auto !important;
  padding: 8px 10px !important;
  border: 1px solid #c3cfca !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #172126 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
}
.dm-page textarea.ff-el-form-control {
  min-height: 74px !important;
  padding: 9px 10px !important;
  resize: vertical !important;
}
.dm-page .ff-el-form-control:focus {
  border-color: var(--dm-orange) !important;
  box-shadow: 0 0 0 3px rgba(230,111,31,.16) !important;
  outline: none !important;
}
.dm-page .ff-el-form-check {
  margin: 4px 0 !important;
}
.dm-page .ff-el-form-check-input {
  margin-top: 2px !important;
}
.dm-page .ff-t-container {
  gap: 10px !important;
  margin-bottom: 0 !important;
}
.dm-page .ff-t-cell {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.dm-page .ff_submit_btn_wrapper {
  margin-top: 6px !important;
  margin-bottom: 0 !important;
}
.dm-page .ff-btn-submit {
  width: 100% !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  border-radius: 5px !important;
  background: var(--dm-orange) !important;
  border-color: var(--dm-orange) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 12px 24px rgba(185,79,19,.2) !important;
}
.dm-page .ff-btn-submit:hover,
.dm-page .ff-btn-submit:focus {
  background: var(--dm-orange-dark) !important;
  border-color: var(--dm-orange-dark) !important;
}
.dm-page .ff-el-is-error .ff-el-form-control {
  border-color: #b42318 !important;
}
.dm-page .error,
.dm-page .text-danger,
.dm-page .ff-el-is-error .ff-el-help-message {
  margin-top: 3px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
.dm-page .ff-message-success {
  margin-top: 8px !important;
  padding: 10px 12px !important;
  border-radius: 6px !important;
  border-color: var(--dm-green) !important;
  background: #edf6f0 !important;
  color: #172126 !important;
  font-size: 14px !important;
}
@media (max-width: 782px) {
  .dm-page .ff-t-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .dm-form-card,
  .dm-quote-panel {
    padding: 18px !important;
  }
}
@media (max-width: 560px) {
  .dm-page .dm-hero {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    overflow: hidden !important;
  }
  .dm-page .dm-hero > .dm-wrap,
  .dm-page .dm-hero-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .dm-page .dm-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .dm-page .dm-hero h1 {
    max-width: 310px !important;
    font-size: 40px !important;
    line-height: 1.04 !important;
    overflow-wrap: break-word !important;
  }
  .dm-page .dm-hero p,
  .dm-page .dm-hero .dm-actions,
  .dm-page .dm-trust {
    width: 100% !important;
    max-width: 310px !important;
    min-width: 0 !important;
  }
  .dm-page .dm-hero p {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }
  .dm-page .dm-trust {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Gutenberg wrapper containment for cost/resource pages */
.dm-page .wp-block-group,
.dm-page .wp-block-group__inner-container,
.dm-page .wp-block-heading,
.dm-page .wp-block-paragraph {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
@media (max-width: 560px) {
  .dm-page .wp-block-heading {
    font-size: clamp(27px, 8vw, 36px) !important;
    line-height: 1.08 !important;
  }
}
.dm-quote-fix .dm-split {
  align-items: start !important;
}
.dm-quote-fix .dm-form-card {
  width: 100% !important;
}
@media (max-width: 980px) {
  .dm-quote-fix .dm-form-card {
    margin-top: 4px !important;
  }
}

/* Final full-bleed correction for Kadence/mobile body gutters */
html,
body {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.page .site,
body.page #page,
body.page .site-content,
body.page .content-container,
body.page .content-area,
body.page .site-main,
body.page .entry,
body.page .entry-content-wrap,
body.page .entry-content {
  width: 100% !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.page .entry-content:has(.dm-page),
body.page .content-area:has(.dm-page),
body.page .site-main:has(.dm-page) {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: clip !important;
}
body.page .dm-page {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-x: clip !important;
}
body.page .dm-page > .dm-hero:first-child,
body.page .dm-page > .dm-title:first-child,
body.page .dm-page > section:first-child {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Gutenberg quote form stretch fix */
.dm-gb-quote .dm-wrap.dm-split,
.dm-gb-quote .dm-wrap.dm-split > .wp-block-group__inner-container {
  width: min(1240px, 100%) !important;
  max-width: 100% !important;
}
.dm-gb-quote .dm-wrap.dm-split > .wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr) !important;
  gap: clamp(30px, 5vw, 70px) !important;
  align-items: start !important;
}
.dm-gb-quote .dm-wrap.dm-split > .wp-block-group__inner-container > .wp-block-group,
.dm-gb-quote .dm-card.dm-compact-form,
.dm-gb-quote .dm-card.dm-compact-form > .wp-block-group__inner-container,
.dm-gb-quote .fluentform,
.dm-gb-quote .frm-fluent-form {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  justify-self: stretch !important;
}
.dm-gb-quote .dm-card.dm-compact-form {
  padding: clamp(18px, 2.2vw, 26px) !important;
  box-shadow: 0 18px 42px rgba(18,26,31,.12) !important;
}
@media (max-width: 980px) {
  .dm-gb-quote .dm-wrap.dm-split > .wp-block-group__inner-container {
    grid-template-columns: 1fr !important;
  }
}

/* Consistent Pro Demolition Melbourne footer */
body.page .site-footer {
  display: none !important;
}
.dm-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  background: #101820;
  color: #fff;
  padding: 56px 22px 30px;
}
.dm-footer__inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
}
.dm-footer h2,
.dm-footer h3 {
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
}
.dm-footer h2 {
  font-size: clamp(24px, 2.4vw, 34px);
}
.dm-footer h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dm-yellow);
}
.dm-footer p,
.dm-footer li {
  color: rgba(255,255,255,.78);
  margin-top: 0;
}
.dm-footer a {
  color: #fff !important;
  text-decoration: none !important;
}
.dm-footer a:hover {
  color: var(--dm-yellow) !important;
}
.dm-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.dm-footer__brand p {
  max-width: 34ch;
}
.dm-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 10px 15px;
  border-radius: 6px;
  background: var(--dm-orange);
  border: 1px solid var(--dm-orange);
  color: #fff !important;
  font-weight: 900;
}
.dm-footer__bottom {
  width: min(1240px, 100%);
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: space-between;
  color: rgba(255,255,255,.7);
  font-size: 14px;
}
.dm-footer__bottom p {
  margin: 0;
}
@media (max-width: 980px) {
  .dm-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dm-footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 620px) {
  .dm-footer {
    padding: 42px 22px 86px;
  }
  .dm-footer__inner {
    grid-template-columns: 1fr;
  }
  .dm-footer__bottom {
    display: grid;
    gap: 8px;
  }
}