/* ============================================================
   Modern Maps Pro — Marketing kit
   Hand-port of /ui_kits/marketing/kit.css.

   Removed from the source:
   - @import of colors_and_type.css (tokens.css is imported by SCSS).
   - html/body resets and box-sizing (theme.json + WP normalize handle these).
   ============================================================ */

:root {
  /* The marketing surface is intentionally narrower than the global container.
     1240 keeps the card grid from feeling stretched at 1300. */
  --container: 1240px;
  --gutter: 32px;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }


/* ---- nav ------------------------------------------------- */
.mm-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(25, 28, 34, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition:
    background 240ms cubic-bezier(.2,.8,.2,1),
    border-color 240ms cubic-bezier(.2,.8,.2,1),
    backdrop-filter 240ms cubic-bezier(.2,.8,.2,1);
}
/* WP admin bar offset — fixed elements sit under it otherwise. */
.admin-bar .mm-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .mm-nav { top: 46px; }
}
.mm-nav.transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.mm-nav.transparent.scrolled {
  background: rgba(25, 28, 34, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: rgba(255,255,255,0.05);
}
.mm-nav .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.mm-nav .lockup,
.mm-nav .wp-block-site-logo img { height: 26px; width: auto; }
.mm-nav nav,
.mm-nav .wp-block-navigation {
  display: flex; gap: 28px;
  font: 500 14px/1 var(--f-body);
  color: rgba(255,255,255,0.72);
}
/* Strip the global link styling from theme.json's elements.link rule
   (which uses :where() and so loses on specificity but is still worth
   being explicit here). Color/underline are set per-context below. */
.mm-nav a,
.mm-nav a:hover,
.mm-nav a:focus,
.mm-nav a:active {
  text-decoration: none;
  color: rgba(255,255,255,0.72);
}
.mm-nav nav a,
.mm-nav .wp-block-navigation a { transition: color 150ms cubic-bezier(.2,.8,.2,1); }
.mm-nav nav a:hover,
.mm-nav .wp-block-navigation a:hover { color: #fff; }
/* The "Download free" button keeps its own white-on-blue look. */
.mm-nav .btn-primary,
.mm-nav .btn-primary:hover,
.mm-nav .btn-primary:focus,
.mm-nav .btn-primary:active { color: #fff; }
.mm-nav .right { display: flex; align-items: center; gap: 12px; }

/* ---- nav: mobile toggle --------------------------------- */
.mm-nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  margin-left: auto;
  border-radius: 8px;
  background: transparent;
}
.mm-nav-toggle:hover { background: rgba(255,255,255,0.06); }
.mm-nav-toggle:focus-visible { outline: 2px solid #6ea7ff; outline-offset: 2px; }
.mm-nav-toggle-bar {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition:
    transform 200ms cubic-bezier(.2,.8,.2,1),
    opacity 200ms cubic-bezier(.2,.8,.2,1);
}
.mm-nav.menu-open .mm-nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mm-nav.menu-open .mm-nav-toggle-bar:nth-child(2) { opacity: 0; }
.mm-nav.menu-open .mm-nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .mm-nav-toggle { display: flex; }
  .mm-nav .inner {
    flex-wrap: wrap;
    height: auto;
    align-content: flex-start;
    gap: 12px;
  }
  /* Pin the top row to 68px so opening the menu doesn't shift the logo up. */
  .mm-nav .inner > a {
    min-height: 68px;
    display: inline-flex;
    align-items: center;
  }
  .mm-nav nav,
  .mm-nav .right {
    flex-basis: 100%;
    display: none;
  }
  .mm-nav.menu-open nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 8px;
    font-size: 16px;
  }
  .mm-nav.menu-open nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mm-nav.menu-open .right {
    display: flex;
    padding: 8px 0 16px;
  }
  .mm-nav.menu-open .right .btn-primary {
    width: 100%;
    justify-content: center;
  }
  /* Force glass background while the menu is open, even at the top of the page. */
  .mm-nav.transparent.menu-open {
    background: rgba(25, 28, 34, 0.94);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom-color: rgba(255,255,255,0.06);
  }
}


/* ---- buttons -------------------------------------------- */
.btn,
.wp-block-button.is-style-mm-default .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font: 600 13px/1 var(--f-heading);
  letter-spacing: -0.005em;
  border: 1px solid transparent;
}
.btn,
.wp-block-button .wp-block-button__link {
  transition:
    transform 150ms cubic-bezier(.2,.8,.2,1),
    filter 150ms cubic-bezier(.2,.8,.2,1),
    box-shadow 150ms cubic-bezier(.2,.8,.2,1);
}
.btn:hover,
.wp-block-button .wp-block-button__link:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active,
.wp-block-button .wp-block-button__link:active { transform: translateY(0); filter: brightness(0.96); }

.btn-primary,
.wp-block-button:not(.is-style-pill):not(.is-style-ghost) .wp-block-button__link {
  background: #0052ae; color: #fff;
  box-shadow: 0 4px 24px rgba(0, 82, 174, 0.45);
}
.btn-secondary {
  background: rgba(255,255,255,0.06); color: #fff;
  border-color: rgba(255,255,255,0.12);
}
.btn-ghost,
.wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent; color: rgba(255,255,255,0.85);
  padding-left: 4px; padding-right: 4px;
  box-shadow: none;
}
.btn-ghost .arrow,
.wp-block-button.is-style-ghost .wp-block-button__link .arrow { color: #6ea7ff; }
.btn-pill,
.wp-block-button.is-style-pill .wp-block-button__link {
  background: #fff; color: #191c22;
  border-radius: 999px; padding: 10px 18px; font-size: 12px;
  box-shadow: none;
}


/* ---- eyebrow -------------------------------------------- */
.eyebrow {
  font: 600 11px/1 var(--f-body);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #6ea7ff;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #6ea7ff; box-shadow: 0 0 0 4px rgba(110,167,255,0.18);
}


/* ---- section spacing ------------------------------------ */
.mm-section { padding: 96px 0; }
.mm-section.tight { padding: 64px 0; }


/* ---- section head -------------------------------------- */
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: end; margin-bottom: 56px;
}
.section-head h2 {
  font: 700 40px/1.08 var(--f-heading); letter-spacing: -0.025em;
  margin: 14px 0 0;
  text-wrap: balance;
}
.section-head .lede {
  font: 400 16px/1.6 var(--f-body); color: rgba(255,255,255,0.55);
  max-width: 460px;
}
.section-head.single {
  grid-template-columns: 1fr;
  text-align: left;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
