/* ─────────────────────────────────────────────────────────────────────────────
   MAC ANGELO — Header & Footer Styles (Custom Code Build)
   No Elementor dependency. Clean BEM CSS.
   ───────────────────────────────────────────────────────────────────────────── */

/* ═══ TOKENS ════════════════════════════════════════════════════════════════ */
:root {
  --ma-white:       #FFFFFF;
  --ma-offwhite:    #F5F5F0;
  --ma-off-white:   #F5F5F0;  /* alias used by resources.css */
  --ma-dark:        #0A0A0A;  /* deep dark used by resources.css */
  --ma-gold:        #C9A84C;
  --ma-gold-light:  #E8C46A;
  --ma-gold-dark:   #A88830;
  --ma-teal:        #1A9F9F;
  --ma-teal-light:  #2ABFBF;
  --ma-violet:      #6B3FA0;
  --ma-text:        #1A1A1A;
  --ma-text-dark:   #0A0A0A;  /* alias used by industries.css */
  --ma-text-mid:    #4A4A4A;  /* alias used by industries.css */
  --ma-text-muted:  #6B6B6B;  /* alias used by industries.css */
  --ma-muted:       #6B6B6B;
  --ma-subtle:      #A8A8A0;
  --ma-border:      #E5E5E0;
  --ma-border-light: rgba(0,0,0,0.07);

  --ma-header-h:    68px;
  --header-h:       68px;     /* alias used by some templates */
  --ma-max-w:       1280px;
  --ma-pad-x:       clamp(20px, 4vw, 64px);

  --ma-radius-sm:   6px;
  --ma-radius-md:   10px;
  --ma-radius-lg:   16px;

  /* Shadows used by resources.css */
  --ma-shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --ma-shadow-md:   0 4px 16px rgba(0,0,0,0.08);
  --ma-shadow-lg:   0 8px 32px rgba(0,0,0,0.12);

  /* Transition shorthand */
  --ma-transition:  0.2s ease;

  --z-header:       500;
  --z-drawer:       600;
  --z-backdrop:     590;
}

/* ═══ SKIP LINK ═════════════════════════════════════════════════════════════ */
.ma-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--ma-gold);
  color: #0A0A0A;
  padding: 8px 16px;
  border-radius: 0 0 var(--ma-radius-sm) var(--ma-radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.ma-skip-link:focus { top: 0; }

/* ═══ BUTTON SYSTEM ═════════════════════════════════════════════════════════ */
.ma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--ma-radius-sm);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.ma-btn--gold {
  background-color: var(--ma-gold);
  color: #0A0A0A;
  padding: 11px 24px;
}
.ma-btn--gold:hover {
  background-color: var(--ma-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.25);
  color: #0A0A0A;
}
.ma-btn--gold:active {
  background-color: var(--ma-gold-dark);
  transform: translateY(0);
}
.ma-btn--outline {
  background: transparent;
  color: var(--ma-gold);
  border: 1.5px solid var(--ma-gold);
  padding: 10px 22px;
}
.ma-btn--outline:hover {
  background: var(--ma-gold);
  color: #0A0A0A;
}

/* Ghost — dark text/border (light backgrounds) — default for most CTAs/heroes */
.ma-btn--ghost {
  background: transparent;
  color: var(--ma-text, #1A1A1A);
  border: 1.5px solid rgba(0,0,0,0.22);
  padding: 10px 22px;
}
.ma-btn--ghost:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.38);
  color: var(--ma-text, #1A1A1A);
  transform: translateY(-1px);
}

/* Ghost inverse — white text/border (dark hero backgrounds) */
.ma-btn--ghost-inv {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 10px 22px;
}
.ma-btn--ghost-inv:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
  transform: translateY(-1px);
}

/* Size modifiers */
.ma-btn--lg {
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--ma-radius-md);
}
.ma-btn--sm {
  font-size: 0.8125rem;
  padding: 7px 16px;
}

/* Full width */
.ma-btn--full {
  width: 100%;
  justify-content: center;
}

/* Gold small — compact gold pill */
.ma-btn--gold-sm {
  background-color: var(--ma-gold);
  color: #0A0A0A;
  font-size: 0.8125rem;
  padding: 7px 16px;
}
.ma-btn--gold-sm:hover {
  background-color: var(--ma-gold-light);
  transform: translateY(-1px);
  color: #0A0A0A;
}

/* ═══ BREADCRUMBS (global — used across all page templates) ════════════════ */
.ma-breadcrumb { margin-bottom: 28px; }
.ma-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  color: var(--ma-subtle, #A8A8A0);
}
.ma-breadcrumb li { display: flex; align-items: center; gap: 4px; }
.ma-breadcrumb a { color: var(--ma-muted, #6B6B6B); text-decoration: none; transition: color 0.2s; }
.ma-breadcrumb a:hover { color: var(--ma-teal, #1A9F9F); }
.ma-breadcrumb [aria-current="page"] { color: var(--ma-text, #1A1A1A); font-weight: 600; }

/* Light variant — for dark/hero backgrounds */
.ma-breadcrumb--light a { color: rgba(255,255,255,0.55); }
.ma-breadcrumb--light a:hover { color: rgba(255,255,255,0.95); }
.ma-breadcrumb--light [aria-current="page"] { color: rgba(255,255,255,0.85); font-weight: 500; }
.ma-breadcrumb--light ol > li + li { color: rgba(255,255,255,0.35); }

/* ═══ HEADER ════════════════════════════════════════════════════════════════ */
.ma-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--ma-white);
  border-bottom: 1px solid var(--ma-border);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  width: 100%;
}

.ma-header.is-scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
  border-bottom-color: transparent;
}

.ma-header__inner {
  max-width: var(--ma-max-w);
  margin: 0 auto;
  padding: 0 var(--ma-pad-x);
  height: var(--ma-header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo — portrait icon mark, treated as square */
.ma-header__logo {
  flex-shrink: 0;
  line-height: 0;
}
.ma-header__logo a {
  display: block;
  line-height: 0;
}
.ma-header__logo img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 6px;
}

/* Nav */
.ma-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.ma-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.ma-nav__list > li {
  position: relative;
}

.ma-nav__list > li > a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ma-muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--ma-radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.ma-nav__list > li > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--ma-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.ma-nav__list > li > a:hover,
.ma-nav__list > li > a:focus-visible {
  color: var(--ma-text);
}
.ma-nav__list > li > a:hover::after,
.ma-nav__list > li.current-menu-item > a::after {
  transform: scaleX(1);
}
.ma-nav__list > li.current-menu-item > a {
  color: var(--ma-gold);
}

/* Dropdown arrow — standard sub-menu items only (not mega triggers) */
.ma-nav__list > li.menu-item-has-children:not(.ma-has-mega) > a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 4px;
  transition: transform 0.2s ease;
  order: 1;
}
.ma-nav__list > li.menu-item-has-children:not(.ma-has-mega):hover > a::before {
  transform: rotate(180deg);
}

/* Mega trigger: NO ::before arrow, NO ::after triangle
   Use ::after as the gold underline bar (same as regular nav items) */
.ma-nav__list > li.ma-has-mega > a.ma-mega-trigger {
  position: relative;
}
.ma-nav__list > li.ma-has-mega > a.ma-mega-trigger::before {
  display: none !important;
}
.ma-nav__list > li.ma-has-mega > a.ma-mega-trigger::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  bottom: 4px !important;
  left: 14px !important;
  right: 14px !important;
  height: 1.5px !important;
  width: auto !important;
  background: var(--ma-gold, #C9A84C) !important;
  border: none !important;
  margin: 0 !important;
  transform: scaleX(0) !important;
  transform-origin: left !important;
  transition: transform 0.25s ease !important;
  vertical-align: baseline !important;
}
.ma-nav__list > li.ma-has-mega:hover > a.ma-mega-trigger::after {
  transform: scaleX(1) !important;
}

/* Dropdown submenu */
.ma-nav__list > li > .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--ma-white);
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  list-style: none;
  margin: 0;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}
.ma-nav__list > li:hover > .sub-menu,
.ma-nav__list > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li a {
  display: block;
  padding: 8px 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ma-muted);
  text-decoration: none;
  border-radius: var(--ma-radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.sub-menu li a:hover {
  color: var(--ma-text);
  background-color: var(--ma-offwhite);
}

/* CTA */
.ma-header__cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ma-header__portfolio-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ma-text, #1A1A1A);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.ma-header__portfolio-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ma-gold, #C9A84C);
  border-radius: 99px;
  transition: width 0.25s ease;
}
.ma-header__portfolio-link:hover { color: var(--ma-gold, #C9A84C); }
.ma-header__portfolio-link:hover::after { width: 100%; }

/* Hamburger */
.ma-hamburger {
  display: none;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ma-muted);
  border-radius: var(--ma-radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
  margin-left: auto;
}
.ma-hamburger:hover {
  color: var(--ma-text);
  background-color: var(--ma-offwhite);
}

/* ═══ MOBILE DRAWER ═════════════════════════════════════════════════════════ */
.ma-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: var(--z-backdrop);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ma-backdrop.is-open { display: block; }

.ma-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: var(--ma-white);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  border-left: 1px solid var(--ma-border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.ma-drawer.is-open { transform: translateX(0); }

.ma-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.ma-drawer__head img {
  height: 36px !important;
  width: 36px !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  border-radius: 6px !important;
}
.ma-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ma-muted);
  padding: 6px;
  border-radius: var(--ma-radius-sm);
  transition: color 0.2s;
}
.ma-drawer__close:hover { color: var(--ma-text); }

.ma-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.ma-drawer__list li {
  border-bottom: 1px solid var(--ma-border);
}
.ma-drawer__list li a {
  display: block;
  padding: 13px 4px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ma-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ma-drawer__list li a:hover { color: var(--ma-gold); }
.ma-drawer__list .sub-menu {
  list-style: none;
  padding: 0 0 8px 16px;
  margin: 0;
}
.ma-drawer__list .sub-menu li { border-bottom: none; }
.ma-drawer__list .sub-menu li a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ma-muted);
  padding: 6px 4px;
}

.ma-drawer__cta {
  display: block;
  margin-top: 24px;
  text-align: center;
  width: 100%;
}

/* ═══ RESPONSIVE HEADER ════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .ma-header__nav,
  .ma-header__cta {
    display: none;
  }
  .ma-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .ma-header__logo img { height: 30px; }
}

/* ═══ FOOTER ════════════════════════════════════════════════════════════════ */
.ma-footer {
  background-color: var(--ma-white);
  border-top: 1px solid var(--ma-border);
  padding: 72px 0 0;
}

.ma-footer__inner {
  max-width: var(--ma-max-w);
  margin: 0 auto;
  padding: 0 var(--ma-pad-x);
}

.ma-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 64px;
}

/* Col heading */
.ma-footer__col-heading {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ma-gold);
  margin-bottom: 18px;
}

/* Brand col */
.ma-footer__col--brand {}
.ma-footer__logo-link { display: inline-block; line-height: 0; margin-bottom: 16px; }
.ma-footer__logo-link img { height: 40px; width: 40px; object-fit: cover; object-position: center top; display: block; border-radius: 6px; }
.ma-footer__tagline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--ma-subtle);
  line-height: 1.7;
  margin: 0 0 18px;
}

/* Social icons */
.ma-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ma-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--ma-radius-sm);
  border: 1px solid var(--ma-border);
  color: var(--ma-subtle);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.ma-social-link:hover {
  color: var(--ma-gold);
  border-color: rgba(201, 168, 76, 0.35);
  background-color: rgba(201, 168, 76, 0.06);
}

/* Link lists */
.ma-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ma-footer__links li a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--ma-subtle);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
}
.ma-footer__links li a:hover { color: var(--ma-text); }
.ma-footer__link--accent {
  color: var(--ma-teal) !important;
  margin-top: 4px;
}
.ma-footer__link--accent:hover { color: var(--ma-teal-light) !important; }

/* Contact col */
.ma-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ma-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--ma-subtle);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease;
}
.ma-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ma-gold);
}
.ma-contact-item:hover { color: var(--ma-text); }
.ma-contact-item--address { cursor: default; }

/* Footer bar */
.ma-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--ma-border);
  gap: 16px;
  flex-wrap: wrap;
}
.ma-footer__copyright {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  color: #909090;
  margin: 0;
}
.ma-footer__legal {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ma-footer__legal a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  color: #909090;
  text-decoration: none;
  transition: color 0.2s;
}
.ma-footer__legal a:hover { color: var(--ma-text); }
.ma-footer__legal span { color: var(--ma-border); }

/* ═══ RESPONSIVE FOOTER ════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ma-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }
  .ma-footer__col--brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .ma-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .ma-footer__col--brand,
  .ma-footer__col--contact {
    grid-column: 1 / -1;
  }
  .ma-footer__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* ═══ MEGA MENUS ════════════════════════════════════════════════════════════ */

/* Mega trigger: ::after is the gold underline bar (no dropdown triangle) */
.ma-has-mega > a.ma-mega-trigger::before { display: none !important; }

/* Mega panel base */
.ma-mega {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border: 1px solid var(--ma-border);
  border-radius: var(--ma-radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.ma-has-mega:hover .ma-mega,
.ma-has-mega:focus-within .ma-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Ensure parent li doesn't clip */
.ma-has-mega { position: relative; }

/* ── Services mega ── */
.ma-mega--services {
  width: 860px;
}

.ma-mega__body {
  display: flex;
  gap: 0;
}

/* Left: category tabs */
.ma-mega__tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 16px;
  border-right: 1px solid var(--ma-border);
  min-width: 220px;
  flex-shrink: 0;
}

.ma-mega__tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: var(--ma-radius-sm);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ma-muted);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.ma-mega__tab i {
  font-size: 14px;
  width: 16px;
  text-align: center;
  color: var(--ma-subtle);
  transition: color 0.15s ease;
  flex-shrink: 0;
}
.ma-mega__tab:hover {
  background: var(--ma-offwhite);
  color: var(--ma-text);
}
.ma-mega__tab:hover i { color: var(--ma-gold); }
.ma-mega__tab.is-active {
  background: rgba(201,168,76,0.08);
  color: var(--ma-text);
  font-weight: 600;
}
.ma-mega__tab.is-active i { color: var(--ma-gold); }

/* Right: service panels */
.ma-mega__panels {
  flex: 1;
  padding: 20px 24px;
  min-height: 240px;
}

.ma-mega__panel {
  display: none;
}
.ma-mega__panel.is-active {
  display: block;
}

.ma-mega__svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.ma-mega__svc-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--ma-radius-sm);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--ma-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.ma-mega__svc-list li a i {
  font-size: 10px;
  color: var(--ma-subtle);
  transition: color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.ma-mega__svc-list li a:hover {
  background: var(--ma-offwhite);
  color: var(--ma-text);
}
.ma-mega__svc-list li a:hover i {
  color: var(--ma-gold);
  transform: translateX(2px);
}

/* Shared footer */
.ma-mega__footer {
  border-top: 1px solid var(--ma-border);
  padding: 12px 24px;
}
.ma-mega__all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ma-gold);
  text-decoration: none;
  transition: gap 0.15s ease;
}
.ma-mega__all-link:hover { gap: 10px; }
.ma-mega__all-link i { font-size: 12px; }

/* ── Industries mega ── */
.ma-mega--industries {
  width: 680px;
}

.ma-mega--industries .ma-mega__body {
  padding: 24px 24px 20px;
}

.ma-mega__ind-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.ma-mega__ind-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 14px;
  border-radius: var(--ma-radius-md);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  text-align: center;
}
.ma-mega__ind-card:hover {
  background: var(--ma-offwhite);
  transform: translateY(-2px);
}

.ma-mega__ind-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(201,168,76,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.ma-mega__ind-card:hover .ma-mega__ind-icon {
  background: rgba(201,168,76,0.18);
}
.ma-mega__ind-icon i {
  font-size: 18px;
  color: var(--ma-gold);
}

.ma-mega__ind-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ma-text);
  line-height: 1.3;
}

/* ── Responsive: hide mega on mobile (drawer handles it) ── */
@media (max-width: 1024px) {
  .ma-mega { display: none !important; }
}


/* ═══ SHARED GLOBALS (used across all page templates) ═══════════════════════
   These live here so every page gets them — no page-specific CSS needed.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Eyebrow label ────────────────────────────────────────── */
.ma-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}
.ma-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  flex-shrink: 0;
}
.ma-eyebrow--gold   { color: #8B6914; }
.ma-eyebrow--gold::before   { background: #C9A84C; }
.ma-eyebrow--teal   { color: #147A7A; }
.ma-eyebrow--teal::before   { background: #1A9F9F; }
.ma-eyebrow--violet { color: #5A2F8C; }
.ma-eyebrow--violet::before { background: #6B3FA0; }

/* ── Section typography ───────────────────────────────────── */
.ma-section-heading {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ma-text, #1A1A1A);
  margin: 0 0 24px;
}
.ma-section-heading--sm {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 0;
}
.ma-section-sub {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--ma-muted, #6B6B6B);
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}
.ma-section-header         { margin-bottom: 56px; }
.ma-section-header--center { text-align: center; }
.ma-section-header--center .ma-section-sub { margin-inline: auto; }
.ma-section-header--flex   {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* ── Gradient text ────────────────────────────────────────── */
.ma-gradient-text {
  background: linear-gradient(135deg, #8B6914 0%, #C9A84C 55%, #E8C46A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Global CTA section ───────────────────────────────────── */
.ma-sv-cta {
  background: linear-gradient(160deg, #FFFCF2 0%, #FFF9E6 100%);
  border-top: 1px solid rgba(201,168,76,0.20);
  padding: clamp(52px, 7vw, 80px) clamp(24px, 5vw, 80px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.ma-sv-cta__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.ma-sv-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
}
.ma-sv-cta__heading {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ma-text, #1A1A1A);
  margin: 0 0 20px;
}
.ma-sv-cta__body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ma-muted, #6B6B6B);
  margin: 0 0 36px;
}
.ma-sv-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.ma-sv-cta__micro {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  color: var(--ma-subtle, #A8A8A0);
  margin: 0;
}

/* ── Global accordion ─────────────────────────────────────── */
.ma-accordion {
  display: flex;
  flex-direction: column;
  margin: 0; padding: 0; list-style: none;
}
.ma-accordion__item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ma-accordion__item:first-child {
  border-top: 1px solid rgba(0,0,0,0.06);
}
.ma-accordion__trigger {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ma-text, #1A1A1A) !important;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.ma-accordion__trigger:hover { color: var(--cat-color, var(--ma-teal, #1A9F9F)) !important; }
.ma-accordion__item.is-open .ma-accordion__trigger { color: var(--cat-color, var(--ma-teal, #1A9F9F)) !important; }
.ma-accordion__icon {
  flex-shrink: 0;
  color: var(--ma-subtle, #A8A8A0);
  transition: transform 0.3s ease, color 0.2s ease;
  display: flex;
}
.ma-accordion__trigger:hover .ma-accordion__icon,
.ma-accordion__item.is-open .ma-accordion__icon { color: var(--cat-color, var(--ma-teal, #1A9F9F)); }
.ma-accordion__item.is-open .ma-accordion__icon { transform: rotate(180deg); }
.ma-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0; padding: 0;
}
.ma-accordion__panel p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: var(--ma-muted, #6B6B6B);
  line-height: 1.7;
  margin: 0;
  padding: 0 4px 22px;
}

/* ── Prose content ────────────────────────────────────────── */
.ma-prose p  { font-family: 'Inter', system-ui, sans-serif; font-size: 15px; color: var(--ma-muted, #6B6B6B); line-height: 1.7; margin: 0 0 16px; }
.ma-prose ul { padding-left: 20px; margin: 0 0 16px; }
.ma-prose li { font-family: 'Inter', system-ui, sans-serif; font-size: 15px; color: var(--ma-muted, #6B6B6B); line-height: 1.7; margin-bottom: 6px; }
.ma-prose strong { color: var(--ma-text, #1A1A1A); font-weight: 600; }

/* ── FA icon display fix (flex containers) ────────────────── */
i.fa-solid, i.fa-regular, i.fa-brands {
  display: inline-block !important;
  font-style: normal !important;
  line-height: 1 !important;
}


/* Ghost is now dark by default — no per-context overrides needed for light bgs */


/* ── Services hub: force correct button colours ──────────────
   Elementor kit applies its accent pink to <button> globally.
   These !important rules win.                                 */
/* Kill Elementor pink on ALL mega + hub tab buttons */
.ma-mega .ma-mega__tab,
.ma-mega .ma-mega__tab:hover,
.ma-mega .ma-mega__tab:focus,
.ma-mega .ma-mega__tab:active,
.ma-mega .ma-mega__tab.is-active {
  box-shadow: none !important;
  outline: none !important;
  border-color: transparent !important;
}
.ma-mega .ma-mega__tab {
  background: none !important;
  color: var(--ma-muted, #6B6B6B) !important;
}
.ma-mega .ma-mega__tab:hover {
  background: var(--ma-offwhite, #F5F5F0) !important;
  color: var(--ma-text, #1A1A1A) !important;
}
.ma-mega .ma-mega__tab.is-active {
  background: rgba(201,168,76,0.10) !important;
  color: var(--ma-text, #1A1A1A) !important;
}
.ma-mega .ma-mega__tab.is-active i { color: var(--ma-gold, #C9A84C) !important; }

.ma-sh-tab {
  color: var(--ma-muted, #6B6B6B) !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  box-shadow: none !important;
}
.ma-sh-tab:hover {
  color: var(--ma-text, #1A1A1A) !important;
  background: transparent !important;
  border-bottom-color: var(--tab-color, var(--ma-gold, #C9A84C)) !important;
}
.ma-sh-tab--active {
  color: var(--ma-text, #1A1A1A) !important;
  border-bottom-color: var(--tab-color, var(--ma-gold, #C9A84C)) !important;
}
.ma-sh-tab__count {
  color: var(--ma-subtle, #A8A8A0) !important;
  background: var(--ma-offwhite, #F5F5F0) !important;
}
.ma-sh-tab--active .ma-sh-tab__count {
  color: #fff !important;
  background: var(--tab-color, var(--ma-gold, #C9A84C)) !important;
}

/* ── Resources mega menu ─────────────────────────────────── */
.ma-mega--resources {
  width: 520px;
}
.ma-mega--resources .ma-mega__body {
  padding: 20px;
}
.ma-mega__res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ma-mega__res-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--ma-radius-md);
  text-decoration: none;
  transition: background 0.15s ease;
}
.ma-mega__res-card:hover {
  background: var(--ma-offwhite);
}
.ma-mega__res-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(201,168,76,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.ma-mega__res-card:hover .ma-mega__res-icon {
  background: rgba(201,168,76,0.18);
}
.ma-mega__res-icon i {
  font-size: 16px;
  color: var(--ma-gold);
}
.ma-mega__res-card div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ma-mega__res-card strong {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ma-text);
  line-height: 1.2;
}
.ma-mega__res-card span {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--ma-muted);
  line-height: 1.4;
}

/* ── Global container (used by resources, guides, case studies) ── */
.ma-container {
  width: 100%;
  max-width: var(--ma-max-w, 1280px);
  margin-inline: auto;
  padding-inline: var(--ma-pad-x, clamp(20px, 4vw, 64px));
}
