/* ==========================================================================
   Awditify Municipal marketing pages.
   Same visual system as the homepage (aw-* tokens) so the municipal section
   looks like the rest of awditify.com, extended with a few components the
   municipal pages need (screenshot frame, stack compare, step rail).
   ========================================================================== */

/* ---------- Motion ---------- */
@keyframes mg-fade-up { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: translateY(0) } }
@keyframes mg-slide   { from { opacity: 0; transform: translateY(28px) scale(.98) } to { opacity: 1; transform: translateY(0) scale(1) } }

.mg-fade   { animation: mg-fade-up .7s ease-out both; }
.mg-fade-1 { animation: mg-fade-up .7s ease-out .1s both; }
.mg-fade-2 { animation: mg-fade-up .7s ease-out .2s both; }
.mg-fade-3 { animation: mg-fade-up .7s ease-out .3s both; }
.mg-slide  { animation: mg-slide .7s ease-out .2s both; }

.mg-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.mg-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .mg-reveal { opacity: 1 !important; transform: none !important; }
  .mg-fade, .mg-fade-1, .mg-fade-2, .mg-fade-3, .mg-slide { animation: none !important; }
}

/* ---------- Hero shell ---------- */
.mg-hero { background: #F6F9FD; position: relative; overflow: hidden; border-bottom: 1px solid #E4EAF3; }
.mg-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(#C9D8EC 1px, transparent 1px);
  background-size: 30px 30px; opacity: .5; pointer-events: none;
}
.mg-hero::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 90px;
  background: linear-gradient(to bottom, transparent, #F6F9FD); pointer-events: none;
}
.mg-glow { position: absolute; border-radius: 9999px; filter: blur(70px); opacity: .5; pointer-events: none; }

/* ---------- Type ---------- */
.mg-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #003366; background: #E8F4FD; border: 1px solid #B8D9F2;
  border-radius: 9999px; padding: 5px 14px;
}
.mg-badge--light { color: #BBD9F5; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }

.mg-title {
  font-weight: 800;
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  line-height: 1.07;
  letter-spacing: -.03em;
  color: #0a1628;
}
.mg-h2 {
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -.025em;
  color: #0a1628;
}
.mg-h3 {
  font-weight: 700;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -.018em;
  color: #0a1628;
}
/* Dark sections: let the Tailwind text-white utility win over the heading colour. */
.mg-title.text-white, .mg-h2.text-white, .mg-h3.text-white { color: #fff; }

.mg-hl {
  background: linear-gradient(120deg, #0055A4, #003366);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mg-hl-light {
  background: linear-gradient(120deg, #8CC6F5, #E6F2FC);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.mg-cta {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; background: #003366; color: #fff;
  font-size: .98rem; font-weight: 700; border-radius: 12px; text-decoration: none;
  transition: all .2s ease; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,51,102,.25), 0 10px 24px rgba(0,51,102,.22);
}
.mg-cta::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.mg-cta:hover { background: #0055A4; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,51,102,.32); color: #fff; }
.mg-cta:hover::after { left: 140%; }

.mg-cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; background: #fff; color: #003366;
  font-size: .98rem; font-weight: 700; border-radius: 12px; border: 1.5px solid #C5D4E8;
  text-decoration: none; transition: all .2s ease;
}
.mg-cta-ghost:hover { border-color: #003366; background: #E8F4FD; color: #003366; transform: translateY(-2px); }

.mg-cta-light { background: #fff; color: #003366; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.mg-cta-light:hover { background: #E8F4FD; color: #003366; }
.mg-cta-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.32); }
.mg-cta-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

.mg-textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 700; color: #0055A4; text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.mg-textlink:hover { gap: 11px; color: #003366; }

/* ---------- Cards ---------- */
.mg-card { transition: transform .3s cubic-bezier(.25,.8,.25,1), box-shadow .3s ease, border-color .3s ease; }
.mg-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(10,22,40,.10); border-color: #B8D9F2; }

.mg-tint { height: 4px; border-radius: 6px 6px 0 0; display: block; }

/* ---------- Screenshot frame ---------- */
.mg-shot {
  border-radius: 16px; background: #fff; border: 1px solid #E4EAF3; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.03), 0 12px 24px -8px rgba(0,0,0,.08), 0 40px 70px -20px rgba(0,51,102,.18);
}
.mg-shot__bar {
  background: #F6F9FD; border-bottom: 1px solid #E4EAF3;
  padding: .6rem 1rem; display: flex; align-items: center; gap: .5rem;
}
.mg-shot__dot { width: .7rem; height: .7rem; border-radius: 9999px; display: block; }
.mg-shot__url { margin-left: .6rem; font-size: 11px; color: #6b7f95; font-weight: 500; }
.mg-shot__img { display: block; width: 100%; height: auto; }
.mg-shot__ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  min-height: 16rem; padding: 2.5rem 1.5rem; text-align: center;
  background:
    linear-gradient(135deg, rgba(0,85,164,.04) 0%, rgba(0,85,164,0) 55%),
    repeating-linear-gradient(45deg, rgba(0,51,102,.028) 0 12px, transparent 12px 24px),
    #FBFDFF;
}
.mg-shot__ph svg { width: 2rem; height: 2rem; color: #A9C2DA; }
.mg-shot__ph code {
  font-size: 12px; color: #003366; background: #E8F4FD; border: 1px solid #C9DEF3;
  border-radius: 6px; padding: .3rem .6rem; word-break: break-all; font-weight: 600;
}
.mg-shot__ph small { font-size: 11px; color: #8397ab; }
.mg-shot-cap { font-size: .78rem; color: #7c8b9b; margin-top: .8rem; line-height: 1.55; }

/* ---------- Stack compare ---------- */
.mg-stack-row { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: 10px; font-size: .875rem; }
.mg-stack-row--bad { background: #FEF2F2; border: 1px solid #FCDCDC; color: #7f1d1d; }
.mg-stack-row--good { background: #F0FDF4; border: 1px solid #CDECD8; color: #14532d; }
.mg-stack-row svg { width: 1.05rem; height: 1.05rem; flex: none; }

/* ---------- FAQ accordion ---------- */
.mg-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.mg-faq.open .mg-faq-a { max-height: 640px; }
.mg-faq.open .mg-faq-ic { transform: rotate(45deg); }
.mg-faq-ic { transition: transform .25s ease; }

/* ---------- Misc ---------- */
.mg-dark { background: linear-gradient(160deg, #0a1628 0%, #003366 100%); position: relative; overflow: hidden; }
.mg-dark::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.mg-dark > * { position: relative; z-index: 1; }

.mg-rule { border: 0; border-top: 1px solid #E9EEF5; }
