/*
Theme Name: ZTMM Migration Theme
Theme URI: https://www.modularcontainerdc.com
Author: ZTMM Data Center
Description: Lightweight migration theme for the ZTMM Webflow-to-WordPress transition.
Version: 1.0.4
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: ztmm-migration
*/

html, body { margin: 0; padding: 0; }
body { background: #f4f8fb; }
.ztmm-wp-content {
  min-height: 100vh;
  font-family: "IBM Plex Sans", Arial, sans-serif;
}
.ztmm-wp-content > :first-child { margin-top: 0; }

/* Keep FAQ body copy aligned with the homepage typography across migrated templates. */
.ztmm-wp-content [class*="faq" i] summary,
.ztmm-wp-content [class*="faq" i] button,
.ztmm-wp-content [class*="faq" i] p,
.ztmm-wp-content [class*="faq" i] li,
.ztmm-wp-content [class*="faq" i] a {
  font-family: "IBM Plex Sans", Arial, sans-serif !important;
}
.ztmm-migration-fallback {
  max-width: 960px;
  margin: 0 auto;
  padding: 96px 24px;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  color: #061b2e;
}

/* Global navigation replaces the legacy page-level navigation after migration. */
.ztmm-wp-content .site-header,
.ztmm-wp-content .resources-nav,
.ztmm-wp-content .z2-nav,
.ztmm-wp-content .za-nav,
.ztmm-wp-content .zc-nav,
.ztmm-wp-content .zf-nav,
.ztmm-wp-content .zi-nav,
.ztmm-wp-content .zp-nav,
.ztmm-wp-content .zpd-nav,
.ztmm-wp-content .ztp-nav {
  display: none !important;
}

.ztmm-global-header,
.ztmm-global-header * { box-sizing: border-box; }
.ztmm-global-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 10000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 0 clamp(24px, 4vw, 72px);
  color: #fff;
  background: #344351;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-family: "IBM Plex Sans", Arial, sans-serif;
}
.ztmm-global-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.ztmm-global-brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #061b2e;
  background: #8deaff;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 25px;
  font-weight: 800;
}
.ztmm-global-brand-copy { display: grid; line-height: 1.05; }
.ztmm-global-brand-copy strong { font-size: 18px; }
.ztmm-global-brand-copy small {
  margin-top: 6px;
  color: #d0d9e1;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}
.ztmm-global-nav { justify-self: center; }
.ztmm-global-menu,
.ztmm-global-submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ztmm-global-menu { display: flex; align-items: stretch; }
.ztmm-global-item { position: relative; display: flex; align-items: center; }
.ztmm-global-link,
.ztmm-global-submenu-toggle {
  color: #eef3f7;
  font: 600 15px/1.2 "IBM Plex Sans", Arial, sans-serif;
}
.ztmm-global-link {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}
.ztmm-global-link:hover,
.ztmm-global-link:focus-visible { color: #8deaff; outline: none; }
.ztmm-global-submenu-toggle {
  width: 30px;
  height: 40px;
  margin-left: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ztmm-global-submenu-toggle::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .16s ease;
}
.ztmm-global-item.is-open > .ztmm-global-submenu-toggle::before {
  transform: translateY(2px) rotate(225deg);
}
.ztmm-global-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: max-content;
  min-width: 250px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 8px 0;
  background: #fff;
  border: 1px solid #cfdae3;
  box-shadow: 0 18px 36px rgba(5, 23, 39, .18);
}
.ztmm-global-item:hover > .ztmm-global-submenu,
.ztmm-global-item.is-open > .ztmm-global-submenu { display: block; }
.ztmm-global-submenu a {
  display: block;
  padding: 12px 18px;
  color: #071c30;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.ztmm-global-submenu a:hover,
.ztmm-global-submenu a:focus-visible {
  color: #086fb8;
  background: #edf7fc;
  outline: none;
}
.ztmm-global-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  color: #fff;
  background: #ff5a1f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.ztmm-global-cta:hover,
.ztmm-global-cta:focus-visible { background: #df4310; outline: 2px solid #fff; outline-offset: 2px; }
.ztmm-global-mobile-toggle { display: none; }

@media (max-width: 1120px) {
  .ztmm-global-header { gap: 16px; padding-inline: 22px; }
  .ztmm-global-link { padding-inline: 10px; font-size: 14px; }
  .ztmm-global-cta { padding-inline: 14px; }
}

@media (max-width: 920px) {
  .ztmm-global-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }
  .ztmm-global-brand-mark { width: 42px; height: 42px; }
  .ztmm-global-mobile-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,.45);
    cursor: pointer;
  }
  .ztmm-global-mobile-toggle::before {
    content: "";
    width: 20px;
    height: 14px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    box-shadow: inset 0 5px 0 transparent, inset 0 7px 0 currentColor;
  }
  .ztmm-global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: #2d3b48;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .ztmm-global-header.is-menu-open .ztmm-global-nav { display: block; }
  .ztmm-global-menu { display: block; padding: 8px 18px 18px; }
  .ztmm-global-item { display: grid; grid-template-columns: 1fr auto; }
  .ztmm-global-link { min-height: 52px; padding: 0 8px; }
  .ztmm-global-submenu-toggle { width: 48px; height: 48px; margin: 0; }
  .ztmm-global-submenu {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0 0 8px;
    box-shadow: none;
  }
  .ztmm-global-item:hover > .ztmm-global-submenu { display: none; }
  .ztmm-global-item.is-open > .ztmm-global-submenu { display: block; }
  .ztmm-global-cta { display: none; }
}
