@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Figtree:wght@400;500;600;700&display=swap');

/* Site-wide type system: Archivo (display) + Figtree (body) on every surface */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mgs-white);
  color: var(--mgs-navy-900);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Inherit body face unless a display role is set */
button,
input,
select,
textarea,
.mgs-btn,
.mgs-nav,
.mgs-topbar,
.mgs-footer,
.mgs-prose,
.mgs-editor-content,
.mgs-form,
label {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mgs-skip-link {
  position: fixed;
  z-index: 400;
  top: -100px;
  left: 16px;
  background: var(--mgs-amber-500);
  color: #fff;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-weight: 700;
}

.mgs-skip-link:focus {
  top: 16px;
}

.mgs-eyebrow,
.mgs-kicker {
  font-family: var(--font-body);
}

.mgs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mgs-amber-600);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mgs-eyebrow:before {
  content: "";
  width: 14px;
  height: 2px;
  background: currentColor;
}

.mgs-eyebrow--light {
  color: var(--mgs-amber-300);
}

/* All headings site-wide */
h1,
h2,
h3,
h4,
h5,
h6,
.mgs-display,
.mgs-brand__word,
.mgs-brand__mark {
  font-family: var(--font-display);
}

h1,
h2,
h3 {
  line-height: 1.05;
  margin: 0 0 var(--space-5);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

h1 em,
h2 em {
  font-style: normal;
  font-weight: inherit;
  font-family: inherit;
  font-size: inherit;
}

.mgs-prose {
  max-width: 720px;
  font-family: var(--font-body);
}

.mgs-prose p {
  margin: 0 0 var(--space-5);
}

.mgs-prose__strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--mgs-navy-800);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85em;
}

.mgs-caption {
  color: var(--mgs-steel-600);
  font-size: var(--fs-small);
  font-family: var(--font-body);
}

/* Buttons inherit but weight via display for stronger CTAs */
.mgs-btn {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}


/* ----- Brand logo (official MGESCL mark — balanced width) ----- */
.mgs-brand {
  min-width: 0;
  gap: 0;
}
.mgs-brand__logo {
  display: block;
  width: min(200px, 32vw);
  max-width: 210px;
  height: auto;
  max-height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
  background: #fff;
  padding: 0.32rem 0.5rem;
  border-radius: 8px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.18));
}
.mgs-header .mgs-brand__logo {
  width: min(210px, 34vw);
  max-width: 220px;
  max-height: 68px;
}
@media (max-width: 767px) {
  .mgs-brand__logo,
  .mgs-header .mgs-brand__logo {
    width: min(160px, 48vw);
    max-width: 170px;
    max-height: 54px;
    padding: 0.28rem 0.4rem;
  }
}
