/*
Theme Name: Milrouse Child
Theme URI: https://milrouse.com/
Description: Bespoke Kadence child theme for MILROUSE Corporation Group. Premium-corporate-industrial register for an Angolan Oil & Gas engineering and logistics firm. Locked brand tokens, IBM Plex Serif Italic + IBM Plex Sans + IBM Plex Mono, self-hosted woff2.
Author: Flashcloud
Author URI: https://flashcloud.com/
Template: kadence
Version: 1.0.0
Text Domain: milrouse-child
*/

/* ============================================================
   01. Self-hosted IBM Plex woff2 — latin + latin-ext + vietnamese
   ============================================================ */

/* Plex Sans 400 */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/plex-sans-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/plex-sans-400-latin_ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/plex-sans-400-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* Plex Sans 500 */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/plex-sans-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/plex-sans-500-latin_ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/plex-sans-500-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* Plex Sans 600 */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/plex-sans-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/plex-sans-600-latin_ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/plex-sans-600-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* Plex Serif Italic 400 */
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/plex-serif-400-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/plex-serif-400-italic-latin_ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/plex-serif-400-italic-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* Plex Serif Italic 500 */
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("fonts/plex-serif-500-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("fonts/plex-serif-500-italic-latin_ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("fonts/plex-serif-500-italic-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* Plex Mono 400 + 500 */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/plex-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/plex-mono-400-latin_ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/plex-mono-400-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/plex-mono-500-latin_ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/plex-mono-500-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }


/* ============================================================
   02. :root brand tokens (locked from Phase A 2026-06-03)
   ============================================================ */
:root {
  --ml-red: #C8102E;
  --ml-red-deep: #AE0622;
  --ml-red-bright: #D90B2D;
  --ml-ink: #1A1D21;
  --ml-ink-2: #232830;
  --ml-steel: #7A8088;
  --ml-steel-soft: #B8BDC2;
  --ml-paper: #F6F1E6;
  --ml-paper-2: #EDE7D5;
  --ml-white: #FFFFFF;
  --ml-rule: rgba(26, 29, 33, 0.12);
  --ml-rule-strong: rgba(26, 29, 33, 0.6);
  --ml-paper-rule: rgba(246, 241, 230, 0.18);

  --ml-font-display: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --ml-font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ml-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ml-radius-0: 0;
  --ml-radius-1: 2px;
  --ml-shadow-card: 0 1px 0 rgba(26,29,33,0.04), 0 1px 2px rgba(26,29,33,0.06);

  --ml-container: 1290px;
  --ml-container-narrow: 880px;
  --ml-pad: 56px;

  --ml-band-h: 0px; /* trust band height for sticky-stack calculations */
}


/* ============================================================
   03. Frame killers — fight Kadence's white wrappers
   ============================================================ */
html, body { background: var(--ml-paper); }

body, .wp-site-blocks, .site, .site-container, .content-container,
.entry-content, .site-content, .content-bg, .entry-content-wrap,
.content-style-unboxed .entry-content {
  background: var(--ml-paper);
}

/* Site wrapper is full width. Paper background ONLY on body — letting
   .site-container etc inherit transparent keeps dark sections (footer) intact.
   Each section sets its own background colour. */
body { background: var(--ml-paper) !important; }
.content-container,
.site-container,
.site-content,
.wp-site-blocks,
.entry-content {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	background: transparent !important;
}
/* Paper colour for actual content areas (single page / blog post body) */
.entry-content { background: var(--ml-paper) !important; }
/* But footer site-container must NOT take paper colour */
.site-footer .site-container,
.site-footer .content-container { background: transparent !important; }

/* Kadence's .content-area has 80px top/bottom margin — kills hero alignment */
.content-area { margin: 0 !important; padding: 0 !important; }
.entry-hero.page-hero-section { display: none; }

/* Don't stretch main vertically — leaves dead space on short pages */
.wp-site-blocks > main { flex: 0 0 auto !important; }

/* SCOPED page-title hide — bare .entry-title would hide blog loop card titles */
.page .entry-title, .single .entry-title { display: none; }

/* Kadence renders the site title even with header_title_toggle off when a logo exists.
   Hide the duplicate text node next to the logo. */
.site-header .brand .site-title-wrap,
.site-header .brand .site-title,
.site-mobile-header-wrap .brand .site-title-wrap,
.site-mobile-header-wrap .brand .site-title { display: none !important; }
.site-header .brand.has-logo-image { gap: 0 !important; }
.site-header .custom-logo,
.site-mobile-header-wrap .custom-logo {
  max-height: 44px !important;
  width: auto !important;
  height: auto !important;
}

/* ============================================================
   Full-bleed escape for dark sections (hero, prefooter, footer)
   The sections live INSIDE .entry-content which is centered, so we
   use 100vw + negative margins to break out to the viewport edges.
   ============================================================ */
.ml-sec-hero,
.ml-sec-prefooter-cta,
.ml-sec-trust,
.site-footer {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

/* Hero image must cover the full bleed */
.ml-sec-hero .ml-hero-bg,
.ml-sec-hero .ml-hero-bg img { width: 100% !important; height: 100% !important; }
.ml-sec-hero .ml-hero-bg img { object-fit: cover !important; object-position: center center !important; }

/* The page wrapper has gutter padding by default — neutralize on .entry-content */
.entry-content > *:not(.alignfull):not(.alignwide) { max-width: var(--ml-container); margin-left: auto; margin-right: auto; }
.entry-content > .ml-sec-hero,
.entry-content > .ml-sec-prefooter-cta,
.entry-content > .ml-sec-trust { max-width: 100vw !important; }
.entry-content { overflow-x: clip; }

/* Kill default 80px content margin */
.content-style-unboxed.content-area .site-content > main,
.content-style-unboxed.content-area #primary {
  padding-top: 0 !important; padding-bottom: 0 !important;
}


/* ============================================================
   04. Base typography
   ============================================================ */
body {
  font-family: var(--ml-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ml-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
strong, b { font-weight: 600; }
a { color: var(--ml-ink); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--ml-red); }
img { display: block; max-width: 100%; height: auto; }


/* ============================================================
   05. Typographic primitives — used by every section template
   ============================================================ */
.ml-eyebrow {
  font-family: var(--ml-font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ml-red);
  display: inline-block;
}
.ml-eyebrow-mono {
  font-family: var(--ml-font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ml-red);
}
.ml-eyebrow-steel { color: var(--ml-steel); }
.ml-eyebrow-paper { color: var(--ml-paper); }

.ml-h-display {
  font-family: var(--ml-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 5.5vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ml-ink);
}
.ml-h1 {
  font-family: var(--ml-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ml-ink);
}
.ml-h2 {
  font-family: var(--ml-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ml-ink);
}
.ml-h3 {
  font-family: var(--ml-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ml-ink);
}
.ml-h-display em, .ml-h1 em, .ml-h2 em, .ml-h3 em { font-style: italic; color: var(--ml-red); }
.ml-lede {
  font-family: var(--ml-font-body);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--ml-ink);
}
.ml-body {
  font-family: var(--ml-font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ml-ink);
}
.ml-mono {
  font-family: var(--ml-font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ml-steel);
}
.ml-muted { color: var(--ml-steel); }

/* Decorative numeric marker (used in service detail cards, differentiators) */
.ml-num {
  font-family: var(--ml-font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--ml-red);
  text-transform: uppercase;
}


/* ============================================================
   06. CTAs
   ============================================================ */
.ml-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--ml-red);
  color: var(--ml-paper) !important;
  font-family: var(--ml-font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid var(--ml-red);
  transition: background 0.15s, transform 0.1s;
}
.ml-btn-primary::after { content: "→"; font-family: var(--ml-font-display); font-style: italic; }
.ml-btn-primary:hover { background: var(--ml-red-deep); border-color: var(--ml-red-deep); color: var(--ml-paper) !important; }

.ml-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: transparent;
  color: var(--ml-ink) !important;
  border: 1px solid var(--ml-ink);
  font-family: var(--ml-font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}
.ml-btn-ghost::after { content: "→"; font-family: var(--ml-font-display); font-style: italic; }
.ml-btn-ghost:hover { background: var(--ml-ink); color: var(--ml-paper) !important; }
.ml-btn-ghost.on-dark { color: var(--ml-paper) !important; border-color: rgba(246,241,230,0.4); }
.ml-btn-ghost.on-dark:hover { background: var(--ml-paper); color: var(--ml-ink) !important; border-color: var(--ml-paper); }

.ml-link-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ml-red) !important;
  font-family: var(--ml-font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  border-bottom: 1px solid var(--ml-red);
  padding-bottom: 2px;
}
.ml-link-red::after { content: "→"; }


/* ============================================================
   07. Layout primitives
   ============================================================ */
.ml-container { max-width: var(--ml-container); margin: 0 auto; padding: 0 var(--ml-pad); }
.ml-container-narrow { max-width: var(--ml-container-narrow); margin: 0 auto; padding: 0 var(--ml-pad); }
.ml-rule-h { width: 100%; height: 1px; background: var(--ml-rule); }
.ml-rule-h-strong { width: 100%; height: 1px; background: var(--ml-rule-strong); }
.ml-rule-h-paper { width: 100%; height: 1px; background: var(--ml-paper-rule); }
.ml-rule-short { width: 56px; height: 1px; background: var(--ml-ink); margin: 24px 0; }

.ml-section { padding: clamp(72px, 9vw, 130px) 0; background: var(--ml-paper); }
.ml-section--paper-2 { background: var(--ml-paper-2); }
.ml-section--ink { background: var(--ml-ink); color: var(--ml-paper); }


/* ============================================================
   08. Header overrides (sticky on .site-header)
   ============================================================ */
html body .site-header { position: sticky !important; top: 0 !important; z-index: 100 !important; background: var(--ml-white); }
html, body, #wrapper, #page, .site, .site-content, .wp-site-blocks { overflow: visible !important; overflow-x: clip !important; }

/* Slight shadow once user scrolls past the top */
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--ml-rule), 0 8px 24px -16px rgba(26,29,33,0.18); }

/* ============================================================
   Mobile drawer (Kadence #mobile-drawer popup) — paper bg, brand
   ============================================================ */
#mobile-drawer,
#mobile-drawer .drawer-inner { background: var(--ml-paper) !important; color: var(--ml-ink); }
#mobile-drawer .drawer-overlay { background: rgba(26,29,33,0.55) !important; }
#mobile-drawer .drawer-header { border-bottom: 1px solid var(--ml-rule); padding: 16px 24px; display: flex; justify-content: flex-end; }
#mobile-drawer .menu-toggle-close {
  color: var(--ml-ink) !important;
  background: transparent !important;
  border: 1px solid var(--ml-ink) !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  flex: 0 0 40px !important;
  box-sizing: border-box !important;
}
#mobile-drawer .menu-toggle-close svg { fill: var(--ml-ink) !important; width: 14px; height: 14px; }
/* The two bars that make the X */
#mobile-drawer .menu-toggle-close .toggle-close-bar {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 16px !important;
  height: 1.5px !important;
  background: var(--ml-ink) !important;
  transform-origin: center center !important;
  margin: 0 !important;
  display: block !important;
}
#mobile-drawer .menu-toggle-close .toggle-close-bar:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg) !important; }
#mobile-drawer .menu-toggle-close .toggle-close-bar:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg) !important; }
#mobile-drawer .drawer-content { padding: 32px 28px; }

#mobile-drawer .menu > li > a,
#mobile-drawer .menu > li a.menu-link {
  font-family: var(--ml-font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 32px !important;
  line-height: 1.2 !important;
  color: var(--ml-ink) !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--ml-rule) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
}
#mobile-drawer .menu > li.current-menu-item > a,
#mobile-drawer .menu > li.current_page_item > a { color: var(--ml-red) !important; }

#mobile-drawer .menu > li > a::after {
  content: "→";
  font-family: var(--ml-font-display);
  font-size: 18px;
  color: var(--ml-steel);
  font-style: italic;
}
#mobile-drawer .menu > li.current-menu-item > a::after { color: var(--ml-red); }

/* CTA pill inside drawer */
#mobile-drawer .header-html { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ml-rule); }
#mobile-drawer .ml-header-cta {
  display: flex !important;
  width: 100%;
  justify-content: center;
  padding: 16px !important;
  background: var(--ml-red) !important;
  color: var(--ml-paper) !important;
  text-align: center;
  font-family: var(--ml-font-body) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

/* White header background, charcoal text */
.site-header,
.site-main-header-wrap,
.site-header-main-section-wrap,
.site-mobile-header-wrap {
  background: var(--ml-white) !important;
  border-bottom: 1px solid var(--ml-rule);
}

/* Header content: constrain to 1290 inner with 56px gutters */
.site-header .site-container,
.site-header .site-header-inner-wrap,
.site-mobile-header-wrap .site-container {
  max-width: 1290px !important;
  margin: 0 auto !important;
  padding-left: var(--ml-pad) !important;
  padding-right: var(--ml-pad) !important;
}

/* Header nav links — beat Kadence's inline style with high specificity */
html body #main-header .main-navigation .menu > li > a,
html body #mobile-header .menu > li > a {
  font-family: var(--ml-font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ml-ink) !important;
  text-transform: none;
}
html body #main-header .main-navigation .menu > li.current-menu-item > a,
html body #main-header .main-navigation .menu > li.current_page_item > a {
  color: var(--ml-red) !important;
  position: relative;
}
html body #main-header .main-navigation .menu > li.current-menu-item > a::after,
html body #main-header .main-navigation .menu > li.current_page_item > a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: -2px;
  height: 1px;
  background: var(--ml-red);
}

/* Header CTA pill in header_html slot */
.site-header .header-html .ml-header-cta,
.site-mobile-header-wrap .header-html .ml-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ml-red);
  color: var(--ml-paper) !important;
  font-family: var(--ml-font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.site-header .header-html .ml-header-cta::after,
.site-mobile-header-wrap .header-html .ml-header-cta::after {
  content: "→";
  font-family: var(--ml-font-display);
  font-style: italic;
}
.site-header .header-html .ml-header-cta:hover { background: var(--ml-red-deep); color: var(--ml-paper) !important; }


/* ============================================================
   09. Footer overrides (dark charcoal, Flashcloud attribution)
   ============================================================ */
.site-footer,
.site-footer-wrap,
.site-footer-row-container-inner,
.site-footer-section,
.site-footer-bottom-section,
.footer-widget-area-inner,
.site-bottom-footer-wrap {
  background: var(--ml-ink) !important;
  color: var(--ml-paper);
}

/* Constrain inner rows to 1400 max + horizontal gutter */
.site-footer .site-footer-row-container-inner,
.site-footer .site-footer-section,
.site-footer .site-bottom-footer-inner-wrap {
  max-width: var(--ml-container) !important;
  margin: 0 auto !important;
  padding-left: var(--ml-pad) !important;
  padding-right: var(--ml-pad) !important;
}
/* Top row padding control */
.site-footer .site-footer-top-section-1 .site-footer-row-container-inner {
  padding-top: clamp(64px, 7vw, 88px) !important;
  padding-bottom: clamp(48px, 5vw, 64px) !important;
}
/* Bottom bar — tight padding (Kadence default is 56px; too much air) */
.site-footer .site-bottom-footer-wrap {
  border-top: 1px solid rgba(246,241,230,0.12) !important;
}
.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

/* Bottom row layout — 2-column grid: copyright left, attribution right */
.ml-footer-bottom-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ml-footer-copy { color: var(--ml-steel-soft); }
.ml-footer-copy strong { color: var(--ml-paper); font-weight: 500; }

/* 4-column grid for the top row — force ALL row wrappers to dark so
   the grid gap doesn't show paper through */
.site-footer .site-footer-top-section-1,
.site-footer .site-footer-row-wrap,
.site-footer .site-footer-row-container,
.site-footer .site-footer-row-inner,
.site-footer .footer-widget-area,
.site-footer .footer-widget-area-inner,
.site-footer .widget,
.site-footer .widget_block { background: var(--ml-ink) !important; }

.site-footer .site-footer-top-section-1 .site-footer-row-inner {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1.15fr 0.9fr !important;
  gap: 48px !important;
  align-items: start !important;
}
@media (max-width: 1024px) {
  .site-footer .site-footer-top-section-1 .site-footer-row-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }
}
@media (max-width: 640px) {
  .site-footer .site-footer-top-section-1 .site-footer-row-inner {
    grid-template-columns: 1fr !important;
  }
}

/* Brand wordmark in footer column 1 — make it a single-line element */
.site-footer .ml-footer-brand {
  font-family: var(--ml-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ml-paper);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 12px;
  white-space: normal;
}

/* Footer widget area styling */
.site-footer .footer-widget-area h2,
.site-footer .footer-widget-area h3,
.site-footer .footer-widget-area h4,
.site-footer .footer-widget-area .widget-title {
  font-family: var(--ml-font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ml-red-bright) !important;
  margin-bottom: 20px;
}
.site-footer .footer-widget-area, .site-footer .footer-widget-area p,
.site-footer .footer-widget-area li, .site-footer .footer-widget-area a {
  color: var(--ml-paper) !important;
  font-family: var(--ml-font-body);
}
.site-footer .footer-widget-area a {
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s, color 0.15s;
}
.site-footer .footer-widget-area a:hover {
  border-bottom-color: var(--ml-red);
  color: var(--ml-red-bright) !important;
}
.site-footer .footer-widget-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-widget-area ul li { margin-bottom: 10px; }

/* Footer bottom bar — Flashcloud attribution: only the word "Flashcloud" gets the red underline */
.site-footer .site-bottom-footer-inner-wrap,
.site-footer .site-bottom-footer-section {
  font-family: var(--ml-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ml-steel-soft) !important;
}
.ml-footer-attribution a {
  color: var(--ml-paper) !important;
  font-weight: 500;
  text-decoration: none !important;
  border-bottom: 1px solid var(--ml-red);
  padding-bottom: 2px;
}
.ml-footer-attribution a:hover { color: var(--ml-red-bright) !important; }

/* Footer brand wordmark in column 1 */
.ml-footer-brand {
  font-family: var(--ml-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--ml-paper);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 12px;
}
.ml-footer-brand span { color: var(--ml-steel-soft); font-weight: 400; }
.ml-footer-tag {
  font-family: var(--ml-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ml-steel-soft);
  max-width: 280px;
  margin-bottom: 24px;
}

/* Social row in footer */
.ml-social-row { display: flex; gap: 10px; align-items: center; }
.ml-social-row a {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(246,241,230,0.25) !important;
  color: var(--ml-paper) !important;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none !important;
  padding-bottom: 0 !important;
  border-bottom: 1px solid rgba(246,241,230,0.25) !important;
}
.ml-social-row a:hover { background: var(--ml-red); border-color: var(--ml-red) !important; color: var(--ml-paper) !important; }
.ml-social-row a:hover svg { fill: var(--ml-paper) !important; }
.ml-social-row a svg { width: 14px; height: 14px; fill: currentColor; transition: fill 0.15s; }

/* Footer contact stack key/val */
.ml-footer-contact { display: flex; flex-direction: column; gap: 14px; }
.ml-footer-contact .item .lbl {
  font-family: var(--ml-font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ml-steel-soft);
  margin-bottom: 4px;
  display: block;
}
.ml-footer-contact .item .val {
  font-family: var(--ml-font-body);
  font-size: 14px;
  color: var(--ml-paper);
  line-height: 1.45;
}


/* ============================================================
   10. Section template-part scaffolds
   (full per-section CSS lives at the bottom — these are stubs;
    each ml-sec-* class is filled in by the section render that uses it)
   ============================================================ */
/* See section-specific CSS injected via wp_head action in functions.php for
   ml-sec-hero-split, ml-sec-services-grid, ml-sec-service-row, ml-sec-intro,
   ml-sec-prose, ml-sec-trust, ml-sec-prefooter-cta, ml-sec-contact-block. */


/* ============================================================
   Responsive — breakpoints at 1024, 768, 480
   ============================================================ */
@media (max-width: 1024px) {
  :root { --ml-pad: 36px; }
}
@media (max-width: 768px) {
  :root { --ml-pad: 24px; }
}

/* Mobile: footer should remain left-aligned (Kadence's mobile collapse centres widget content) */
@media (max-width: 1024px) {
  .site-footer .footer-widget-area,
  .site-footer .footer-widget-area p,
  .site-footer .footer-widget-area h4,
  .site-footer .footer-widget-area .widget-title,
  .site-footer .ml-footer-brand,
  .site-footer .ml-footer-tag,
  .site-footer .ml-footer-contact,
  .site-footer .ml-footer-bottom-grid,
  .site-footer .ml-footer-copy,
  .site-footer .ml-footer-attribution {
    text-align: left !important;
  }
  .site-footer .ml-social-row { justify-content: flex-start !important; }

  /* Kill the per-widget indent differences — every widget starts at the same x */
  .site-footer .site-footer-section,
  .site-footer .footer-widget-area,
  .site-footer .footer-widget-area-inner,
  .site-footer .widget,
  .site-footer .widget_block,
  .site-footer .ml-footer-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
@media (max-width: 640px) {
  .ml-footer-bottom-grid {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .site-footer .site-bottom-footer-wrap .site-footer-row-container-inner,
  .site-footer .site-bottom-footer-section,
  .site-footer .site-bottom-footer-inner-wrap {
    padding-left: 24px !important;
    padding-right: 24px !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }
  .site-footer .ml-footer-copy,
  .site-footer .ml-footer-attribution { text-align: left !important; }
}
