/* ============================================================
   MISSION FORMATIONS — Global Stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Reset
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------------
   2. Design Tokens (CSS Variables)
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --color-primary: #0965D0;
  --color-accent: #01E8AE;
  --color-yellow: #FFDE54;
  --color-secondary-blue: #2D9BF8;
  --color-text: #3B3B3B;
  --color-muted: #767676;
  --color-light: #F5F5F5;
  --color-bg: #f7f8fb;
  --color-white: #ffffff;
  --color-border: #e5e7eb;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #0965D0 0%, #01E8AE 100%);
  --gradient-hero: linear-gradient(135deg, #0a2540 0%, #0965D0 60%, #01E8AE 100%);

  /* Typography — Families */
  --font-title: 'Ubuntu', sans-serif;
  --font-body: 'Raleway', sans-serif;

  /* Typography — Sizes */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 24px;
  --fs-xl: 32px;
  --fs-2xl: 36px;
  --fs-3xl: 48px;
  --fs-hero: 56px;

  /* Typography — Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Typography — Line Heights */
  --lh-tight: 1.2;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(9, 101, 208, 0.08);
  --shadow-md: 0 4px 16px rgba(9, 101, 208, 0.12);
  --shadow-lg: 0 12px 32px rgba(9, 101, 208, 0.15);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 900px;
  --header-height: 80px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 80px;
}

/* ------------------------------------------------------------
   3. Base Typography
   ------------------------------------------------------------ */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: var(--lh-normal);
  background: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: var(--fw-bold);
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
h4 { font-size: var(--fs-base); }

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}

/* ------------------------------------------------------------
   5. Cards
   ------------------------------------------------------------ */
.card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  transition: all 0.25s ease;
}

/* ------------------------------------------------------------
   6. Container
   ------------------------------------------------------------ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ------------------------------------------------------------
   7. Utility Classes
   ------------------------------------------------------------ */
.text-center  { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-muted); }
.text-accent  { color: var(--color-accent); }

.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-size: var(--fs-2xl);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* ============================================================
   8. Global Footer
   ============================================================ */
.mf-global-footer {
  display: block;
  width: 100%;
  align-self: stretch;
  justify-self: stretch;
  margin-top: 60px;
}

.mf-global-footer .footer {
  background: #3B3B3B;
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 40px 24px;
  font-family: Raleway, Arial, sans-serif;
}

.mf-global-footer .footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.mf-global-footer .footer-brand .f-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mf-global-footer .footer-brand .f-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0965D0 0%, #01E8AE 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Ubuntu, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.mf-global-footer .footer-brand .f-name {
  font-family: Ubuntu, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.mf-global-footer .footer-brand .f-tagline {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.mf-global-footer .footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.mf-global-footer .footer-brand .f-contact {
  font-size: 12px;
  line-height: 1.8;
}

.mf-global-footer .footer-brand .f-contact a {
  color: #01E8AE;
  text-decoration: none;
}

.mf-global-footer .footer-col h4 {
  font-family: Ubuntu, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
}

.mf-global-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mf-global-footer .footer-col li {
  margin-bottom: 8px;
}

.mf-global-footer .footer-col a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.mf-global-footer .footer-col a:hover {
  color: #01E8AE;
}

.mf-global-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 11px;
}

.mf-global-footer .footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.mf-global-footer .footer-bottom a:hover {
  color: #01E8AE;
}

/* Footer — Responsive */
@media (max-width: 768px) {
  .mf-global-footer .footer {
    padding: 40px 20px 24px;
  }
  .mf-global-footer .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .mf-global-footer .footer-top {
    grid-template-columns: 1fr;
  }
}
