/* MGS base — motion, buttons, shared primitives. Loaded site-wide (small). */
html { scroll-behavior: smooth; }

:root { --mgs-ease: cubic-bezier(0.16, 1, 0.3, 1); }

/* Scroll-triggered section reveals (ported from the approved v5 build) */
.mgs-reveal { opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--mgs-ease), transform .6s var(--mgs-ease); }
.mgs-reveal.is-visible { opacity: 1; transform: translateY(0); }

a, button, input, select, textarea { touch-action: manipulation; }
button, a[role="button"], [type="submit"] { -webkit-tap-highlight-color: transparent; }

/* Buttons */
.mgs-btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.8rem 1.4rem; border-radius:.6rem; font-weight:600; line-height:1;
  text-decoration:none !important; border:1px solid transparent;
  transition: background-color .18s var(--mgs-ease), transform .18s var(--mgs-ease), box-shadow .18s var(--mgs-ease); }
.mgs-btn:active { transform: translateY(1px); }
.mgs-btn--primary { background: var(--wp--preset--color--primary); color:#fff !important;
  box-shadow: 0 6px 18px rgba(12,96,168,.25); }
.mgs-btn--primary:hover { background: var(--wp--preset--color--primary-dark); }
.mgs-btn--white { background:#fff; color: var(--wp--preset--color--primary) !important;
  box-shadow: 0 6px 18px rgba(8,50,79,.18); }
.mgs-btn--white:hover { background: var(--wp--preset--color--surface); }
.mgs-btn--ghost { background:transparent; color:#fff !important; border-color: rgba(255,255,255,.55); }
.mgs-btn--ghost:hover { background: rgba(255,255,255,.12); }

/* Phone pill (header CTA pair) */
.mgs-phone-pill { display:inline-flex; align-items:center; gap:.45rem; font-weight:700;
  color: var(--wp--preset--color--ink) !important; text-decoration:none !important;
  padding:.55rem .9rem; border-radius:999px; border:1px solid var(--wp--preset--color--line); }
.mgs-phone-pill:hover { border-color: var(--wp--preset--color--primary-light);
  color: var(--wp--preset--color--primary) !important; }

/* Image frame — 16px rounded + soft shadow (locked MGS standard) */
.mgs-frame { border-radius:16px; overflow:hidden; box-shadow:0 10px 30px rgba(15,23,42,.12); }
.mgs-frame img { display:block; width:100%; height:auto; }

/* Angled section dividers */
.mgs-slant-top    { clip-path: polygon(0 2.2rem, 100% 0, 100% 100%, 0 100%); }
.mgs-slant-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.2rem), 0 100%); }
@media (max-width:640px){
  .mgs-slant-top    { clip-path: polygon(0 1.1rem, 100% 0, 100% 100%, 0 100%); }
  .mgs-slant-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.1rem), 0 100%); }
}

/* Thin brand accent bar between sections */
.mgs-accent-bar { height:.4rem; width:100%;
  background: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-light) 100%); }

/* Eyebrow label */
.mgs-eyebrow { display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color: var(--wp--preset--color--primary-light); margin-bottom:.6rem; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
  .mgs-reveal { opacity:1; transform:none; }
}
