/* ============================================================
   MEI ONE — GLOBAL PRODUCTION STYLESHEET
   File: public/css/styles.css
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root {
  /* Brand */
  --mei-navy: #071a2f;
  --mei-navy-2: #0c2948;
  --mei-navy-3: #123d64;

  --mei-green: #00e676;
  --mei-green-dark: #00b85c;
  --mei-green-light: #66ffb0;

  /* Neutrals */
  --mei-white: #ffffff;
  --mei-black: #050a10;

  --mei-bg: #f4f7fa;
  --mei-card: #ffffff;

  --mei-text: #101827;
  --mei-text-soft: #475569;
  --mei-muted: #64748b;

  --mei-border: #e2e8f0;
  --mei-border-dark: #cbd5e1;

  /* Status */
  --mei-danger: #ef4444;
  --mei-danger-dark: #b91c1c;

  --mei-warning: #f59e0b;
  --mei-warning-dark: #b45309;

  --mei-success: #00b85c;
  --mei-info: #2563eb;

  /* Layout */
  --container: 1180px;
  --container-wide: 1380px;

  --header-height: 76px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:
    0 2px 8px rgba(7, 26, 47, 0.06);

  --shadow-md:
    0 10px 30px rgba(7, 26, 47, 0.08);

  --shadow-lg:
    0 20px 50px rgba(7, 26, 47, 0.12);

  --shadow-green:
    0 12px 30px rgba(0, 230, 118, 0.2);

  /* Motion */
  --transition-fast:
    0.15s ease;

  --transition:
    0.22s ease;

  --transition-slow:
    0.35s ease;
}


/* ============================================================
   2. RESET
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;

  background: var(--mei-bg);
  color: var(--mei-text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}


/* ============================================================
   3. ACCESSIBILITY
   ============================================================ */

:focus-visible {
  outline: 3px solid rgba(0, 230, 118, 0.45);
  outline-offset: 3px;
}

::selection {
  background: var(--mei-green);
  color: var(--mei-navy);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* ============================================================
   4. CONTAINERS
   ============================================================ */

.container {
  width: min(
    var(--container),
    calc(100% - 40px)
  );

  margin-inline: auto;
}

.container-wide {
  width: min(
    var(--container-wide),
    calc(100% - 40px)
  );

  margin-inline: auto;
}


/* ============================================================
   5. GLOBAL BUTTONS
   ============================================================ */

.btn {
  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 0 18px;

  border-radius: var(--radius-md);

  font-size: 0.88rem;
  font-weight: 900;

  text-decoration: none;

  cursor: pointer;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

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

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--mei-green);
  color: var(--mei-navy);

  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  background: var(--mei-green-light);
}

.btn-secondary {
  background: var(--mei-navy);
  color: var(--mei-white);
}

.btn-secondary:hover {
  background: var(--mei-navy-2);
}

.btn-outline {
  background: transparent;
  color: var(--mei-navy);

  border: 1px solid var(--mei-border-dark);
}

.btn-outline:hover {
  border-color: var(--mei-green-dark);
  color: var(--mei-green-dark);
}

.btn-outline-light {
  background: transparent;
  color: var(--mei-white);

  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline-light:hover {
  border-color: var(--mei-green);
  color: var(--mei-green);
}

.btn-danger {
  background: var(--mei-danger);
  color: #fff;
}

.btn-sm {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 0.78rem;
}

.btn-lg {
  min-height: 54px;
  padding-inline: 24px;
  font-size: 0.95rem;
}


/* ============================================================
   6. HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  height: var(--header-height);

  background:
    rgba(7, 26, 47, 0.96);

  border-bottom:
    1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(14px);
}

.nav-container {
  width: min(
    var(--container-wide),
    calc(100% - 40px)
  );

  height: 100%;

  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


/* ============================================================
   7. BRAND
   ============================================================ */

.brand {
  display: inline-flex;
  align-items: center;

  gap: 11px;

  text-decoration: none;

  color: var(--mei-white);

  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: var(--mei-green);
  color: var(--mei-navy);

  font-weight: 1000;

  box-shadow:
    0 8px 24px rgba(0, 230, 118, 0.22);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 1000;
  letter-spacing: -0.03em;
}


/* ============================================================
   8. MAIN NAVIGATION
   ============================================================ */

.main-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-navigation a {
  padding: 9px 12px;

  border-radius: 9px;

  color:
    rgba(255, 255, 255, 0.72);

  text-decoration: none;

  font-size: 0.82rem;
  font-weight: 800;

  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation a.active {
  color: var(--mei-green);
  background:
    rgba(0, 230, 118, 0.08);
}


/* ============================================================
   9. NAV ACTIONS
   ============================================================ */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions .btn {
  min-height: 40px;
  padding-inline: 14px;
}


/* ============================================================
   10. MOBILE MENU
   ============================================================ */

#mobileMenuButton {
  display: none;

  width: 42px;
  height: 42px;

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.07);

  color: var(--mei-white);

  cursor: pointer;
}

#mobileMenuButton:hover {
  background:
    rgba(0, 230, 118, 0.12);

  color: var(--mei-green);
}


/* ============================================================
   11. HERO
   ============================================================ */

.hero-section {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 230, 118, 0.12),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      var(--mei-navy),
      var(--mei-navy-2)
    );

  color: var(--mei-white);

  padding:
    90px 0
    80px;
}

.hero-section::before {
  content: "";

  position: absolute;

  width: 360px;
  height: 360px;

  right: -180px;
  top: -180px;

  border-radius: 50%;

  border:
    1px solid
    rgba(0, 230, 118, 0.14);
}

.hero-section::after {
  content: "";

  position: absolute;

  width: 280px;
  height: 280px;

  left: -150px;
  bottom: -160px;

  border-radius: 50%;

  border:
    1px solid
    rgba(255, 255, 255, 0.05);
}

.hero-grid {
  width: min(
    var(--container-wide),
    calc(100% - 40px)
  );

  margin-inline: auto;

  display: grid;

  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(420px, 0.95fr);

  gap: 70px;

  align-items: center;

  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  margin: 0;

  font-size:
    clamp(2.8rem, 6vw, 5.7rem);

  line-height: 0.95;

  letter-spacing: -0.065em;

  font-weight: 1000;
}

.hero-content h1 span {
  color: var(--mei-green);
}

.hero-content p {
  margin:
    24px 0 0;

  max-width: 620px;

  color:
    rgba(255, 255, 255, 0.68);

  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 30px;

  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.hero-preview {
  position: relative;
}


/* ============================================================
   12. BROWSER PREVIEW
   ============================================================ */

.preview-browser {
  overflow: hidden;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 18px;

  background: #0b1d31;

  box-shadow:
    0 30px 80px
    rgba(0, 0, 0, 0.3);
}

.preview-browser-header {
  height: 42px;

  display: flex;
  align-items: center;

  gap: 7px;

  padding-inline: 14px;

  background:
    rgba(255, 255, 255, 0.045);

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.06);
}

.preview-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.28);
}

.preview-browser-body {
  padding: 25px;
}

.preview-card {
  min-height: 240px;

  padding: 20px;

  border-radius: 14px;

  background:
    rgba(255, 255, 255, 0.055);

  border:
    1px solid
    rgba(255, 255, 255, 0.07);
}


/* ============================================================
   13. STATS
   ============================================================ */

.platform-stats {
  background: var(--mei-white);

  border-bottom:
    1px solid var(--mei-border);
}

.stats-grid {
  width: min(
    var(--container-wide),
    calc(100% - 40px)
  );

  margin-inline: auto;

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);
}

.stat-item {
  padding: 25px 20px;

  text-align: center;

  border-right:
    1px solid var(--mei-border);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-value {
  display: block;

  color: var(--mei-navy);

  font-size: 1.65rem;

  font-weight: 1000;

  letter-spacing: -0.04em;
}

.stat-label {
  display: block;

  margin-top: 3px;

  color: var(--mei-muted);

  font-size: 0.72rem;

  font-weight: 700;
}


/* ============================================================
   14. SECTIONS
   ============================================================ */

.services-section,
.how-section,
.partners-section,
.about-section {
  padding: 85px 0;
}

.section-header {
  max-width: 720px;

  margin:
    0 auto 40px;

  text-align: center;
}

.section-eyebrow {
  display: inline-flex;

  padding: 7px 12px;

  border-radius: var(--radius-pill);

  color: var(--mei-green-dark);

  background:
    rgba(0, 184, 92, 0.08);

  font-size: 0.7rem;

  font-weight: 1000;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}

.section-header h2 {
  margin: 14px 0 10px;

  color: var(--mei-navy);

  font-size:
    clamp(2rem, 4vw, 3rem);

  line-height: 1.05;

  letter-spacing: -0.045em;

  font-weight: 1000;
}

.section-header p {
  margin: 0;

  color: var(--mei-muted);

  font-size: 0.94rem;

  line-height: 1.7;
}


/* ============================================================
   15. SERVICES
   ============================================================ */

.services-grid {
  width: min(
    var(--container-wide),
    calc(100% - 40px)
  );

  margin-inline: auto;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 15px;
}

.service-card {
  position: relative;

  min-height: 205px;

  padding: 23px;

  background: var(--mei-card);

  border:
    1px solid var(--mei-border);

  border-radius: var(--radius-lg);

  text-decoration: none;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);

  border-color:
    rgba(0, 184, 92, 0.35);

  box-shadow: var(--shadow-md);
}

.service-card.service-emergency {
  background:
    linear-gradient(
      135deg,
      #fff5f5,
      #ffffff
    );

  border-color: #fecaca;
}

.service-icon {
  width: 47px;
  height: 47px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  background:
    rgba(0, 230, 118, 0.1);

  color:
    var(--mei-green-dark);

  font-weight: 1000;
}

.service-card h3 {
  margin: 18px 0 7px;

  color: var(--mei-navy);

  font-size: 0.95rem;

  font-weight: 1000;
}

.service-card p {
  margin: 0;

  color: var(--mei-muted);

  font-size: 0.75rem;

  line-height: 1.55;
}

.service-link {
  display: inline-flex;

  margin-top: 17px;

  color:
    var(--mei-green-dark);

  font-size: 0.73rem;

  font-weight: 1000;
}


/* ============================================================
   16. HOW IT WORKS
   ============================================================ */

.steps-grid {
  width: min(
    var(--container-wide),
    calc(100% - 40px)
  );

  margin-inline: auto;

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 16px;
}

.step-card {
  position: relative;

  padding: 25px;

  background: #fff;

  border:
    1px solid var(--mei-border);

  border-radius:
    var(--radius-lg);
}

.step-number {
  color:
    var(--mei-green-dark);

  font-size: 0.7rem;

  font-weight: 1000;

  letter-spacing: 0.08em;
}

.step-icon {
  width: 44px;
  height: 44px;

  margin-top: 17px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background:
    var(--mei-navy);

  color:
    var(--mei-green);

  font-weight: 1000;
}

.step-card h3 {
  margin: 17px 0 7px;

  color:
    var(--mei-navy);

  font-size: 0.9rem;

  font-weight: 1000;
}

.step-card p {
  margin: 0;

  color:
    var(--mei-muted);

  font-size: 0.75rem;

  line-height: 1.55;
}


/* ============================================================
   17. EMERGENCY
   ============================================================ */

.emergency-section {
  padding: 80px 0;

  background:
    linear-gradient(
      135deg,
      #fff7f7,
      #ffffff
    );

  border-top:
    1px solid #fee2e2;

  border-bottom:
    1px solid #fee2e2;
}

.emergency-content {
  width: min(
    var(--container),
    calc(100% - 40px)
  );

  margin-inline: auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 35px;

  padding: 34px;

  border:
    1px solid #fecaca;

  border-radius:
    var(--radius-xl);
}

.emergency-content h2 {
  margin: 0 0 8px;

  color:
    #991b1b;

  font-size:
    clamp(1.5rem, 3vw, 2.2rem);

  font-weight: 1000;
}

.emergency-content p {
  margin: 0;

  color:
    #7f1d1d;

  max-width: 650px;

  font-size: 0.86rem;

  line-height: 1.65;
}


/* ============================================================
   18. PARTNERS
   ============================================================ */

.partners-section {
  background:
    var(--mei-navy);

  color: #fff;
}

.partners-section .section-header h2 {
  color: #fff;
}

.partners-section .section-header p {
  color:
    rgba(255, 255, 255, 0.62);
}

.partners-grid {
  width: min(
    var(--container-wide),
    calc(100% - 40px)
  );

  margin-inline: auto;

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 20px;
}

.partners-content {
  padding: 30px;

  border:
    1px solid
    rgba(255, 255, 255, 0.09);

  border-radius:
    var(--radius-xl);

  background:
    rgba(255, 255, 255, 0.035);
}

.partner-types {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 10px;
}

.partner-card {
  padding: 18px;

  border-radius:
    var(--radius-md);

  background:
    rgba(255, 255, 255, 0.045);

  border:
    1px solid
    rgba(255, 255, 255, 0.06);
}

.partner-card strong {
  display: block;

  color: #fff;

  font-size: 0.8rem;

  font-weight: 1000;
}

.partner-card span {
  display: block;

  margin-top: 4px;

  color:
    rgba(255, 255, 255, 0.52);

  font-size: 0.68rem;

  line-height: 1.45;
}


/* ============================================================
   19. ABOUT
   ============================================================ */

.about-grid {
  width: min(
    var(--container-wide),
    calc(100% - 40px)
  );

  margin-inline: auto;

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 60px;

  align-items: center;
}

.about-grid h2 {
  margin: 0 0 16px;

  color:
    var(--mei-navy);

  font-size:
    clamp(2rem, 4vw, 3rem);

  line-height: 1;

  letter-spacing: -0.05em;

  font-weight: 1000;
}

.about-grid p {
  margin: 0;

  color:
    var(--mei-muted);

  font-size: 0.9rem;

  line-height: 1.8;
}


/* ============================================================
   20. FOOTER
   ============================================================ */

.site-footer {
  padding: 60px 0 20px;

  background:
    #041321;

  color: #fff;
}

.footer-grid {
  width: min(
    var(--container-wide),
    calc(100% - 40px)
  );

  margin-inline: auto;

  display: grid;

  grid-template-columns:
    1.5fr
    repeat(3, 1fr);

  gap: 45px;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand .brand {
  margin-bottom: 15px;
}

.footer-brand p {
  margin: 0;

  color:
    rgba(255, 255, 255, 0.5);

  font-size: 0.76rem;

  line-height: 1.7;
}

.footer-column h3 {
  margin: 0 0 13px;

  color: #fff;

  font-size: 0.78rem;

  font-weight: 1000;
}

.footer-column a {
  display: block;

  margin-bottom: 9px;

  color:
    rgba(255, 255, 255, 0.5);

  text-decoration: none;

  font-size: 0.72rem;

  font-weight: 600;
}

.footer-column a:hover {
  color:
    var(--mei-green);
}

.footer-bottom {
  width: min(
    var(--container-wide),
    calc(100% - 40px)
  );

  margin: 40px auto 0;

  padding-top: 18px;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.07);

  display: flex;

  justify-content: space-between;

  gap: 20px;

  color:
    rgba(255, 255, 255, 0.38);

  font-size: 0.68rem;
}


/* ============================================================
   21. GLOBAL MODAL
   ============================================================ */

.modal {
  position: fixed;

  inset: 0;

  z-index: 5000;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(3, 12, 22, 0.72);

  backdrop-filter: blur(5px);
}

.modal-dialog {
  position: relative;

  width: min(
    520px,
    100%
  );

  max-height:
    calc(100vh - 40px);

  overflow-y: auto;

  padding: 30px;

  border-radius:
    var(--radius-xl);

  background:
    #fff;

  box-shadow:
    0 30px 100px
    rgba(0, 0, 0, 0.3);

  z-index: 2;
}

.modal-close {
  position: absolute;

  right: 13px;
  top: 13px;

  width: 35px;
  height: 35px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    #f1f5f9;

  color:
    #64748b;

  cursor: pointer;

  font-size: 1.25rem;

  line-height: 1;
}

.modal-close:hover {
  background:
    #e2e8f0;

  color:
    var(--mei-navy);
}


/* ============================================================
   22. GLOBAL FORMS
   ============================================================ */

.form-group {
  display: flex;

  flex-direction: column;

  gap: 7px;

  margin-bottom: 15px;
}

.form-group label {
  color:
    var(--mei-text);

  font-size: 0.78rem;

  font-weight: 900;
}

.form-control {
  width: 100%;

  min-height: 48px;

  padding:
    0 13px;

  border:
    1px solid var(--mei-border-dark);

  border-radius:
    var(--radius-md);

  background:
    #fff;

  color:
    var(--mei-text);

  outline: none;

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-control:focus {
  border-color:
    var(--mei-green-dark);

  box-shadow:
    0 0 0 4px
    rgba(0, 230, 118, 0.11);
}

textarea.form-control {
  min-height: 120px;

  padding-top: 12px;

  resize: vertical;
}

select.form-control {
  cursor: pointer;
}


/* ============================================================
   23. TOAST
   ============================================================ */

.mei-toast {
  position: fixed;

  right: 20px;
  bottom: 20px;

  z-index: 9000;

  width: min(
    380px,
    calc(100vw - 40px)
  );

  padding: 14px 16px;

  border-radius:
    var(--radius-md);

  background:
    var(--mei-navy);

  color: #fff;

  box-shadow:
    0 15px 40px
    rgba(0, 0, 0, 0.2);

  font-size: 0.78rem;

  font-weight: 800;

  transform:
    translateY(20px);

  opacity: 0;

  transition:
    opacity var(--transition),
    transform var(--transition);
}

.mei-toast.show {
  opacity: 1;

  transform:
    translateY(0);
}

.mei-toast.success {
  border-left:
    4px solid var(--mei-green);
}

.mei-toast.error {
  border-left:
    4px solid var(--mei-danger);
}

.mei-toast.info {
  border-left:
    4px solid var(--mei-info);
}


/* ============================================================
   24. LOADING STATE
   ============================================================ */

.mei-loading {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;
}

.mei-spinner {
  width: 16px;
  height: 16px;

  border:
    2px solid
    rgba(255, 255, 255, 0.3);

  border-top-color:
    currentColor;

  border-radius: 50%;

  animation:
    meiSpin 0.75s linear infinite;
}

@keyframes meiSpin {
  to {
    transform:
      rotate(360deg);
  }
}


/* ============================================================
   25. DASHBOARD SHARED COMPONENTS
   ============================================================ */

.dashboard-page {
  background:
    var(--mei-bg);
}

.dashboard-card {
  background:
    var(--mei-white);

  border:
    1px solid var(--mei-border);

  border-radius:
    var(--radius-lg);

  box-shadow:
    var(--shadow-sm);
}

.dashboard-card:hover {
  box-shadow:
    var(--shadow-md);
}


/* ============================================================
   26. BADGES
   ============================================================ */

.badge {
  display: inline-flex;

  align-items: center;

  min-height: 26px;

  padding:
    0 9px;

  border-radius:
    var(--radius-pill);

  font-size: 0.65rem;

  font-weight: 1000;
}

.badge-success {
  color:
    #166534;

  background:
    #dcfce7;
}

.badge-warning {
  color:
    #92400e;

  background:
    #fef3c7;
}

.badge-danger {
  color:
    #991b1b;

  background:
    #fee2e2;
}

.badge-info {
  color:
    #1e40af;

  background:
    #dbeafe;
}


/* ============================================================
   27. UTILITY CLASSES
   ============================================================ */

.text-green {
  color:
    var(--mei-green-dark);
}

.text-navy {
  color:
    var(--mei-navy);
}

.text-muted {
  color:
    var(--mei-muted);
}

.text-danger {
  color:
    var(--mei-danger);
}

.fw-bold {
  font-weight: 900;
}

.fw-black {
  font-weight: 1000;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}


/* ============================================================
   28. RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1050px) {

  .hero-grid {
    grid-template-columns:
      1fr;

    gap: 45px;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-preview {
    max-width: 700px;
  }

  .services-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


/* ============================================================
   29. RESPONSIVE — MOBILE NAV
   ============================================================ */

@media (max-width: 850px) {

  .site-header {
    height: 68px;
  }

  .nav-container {
    width:
      calc(100% - 28px);
  }

  #mobileMenuButton {
    display: grid;
    place-items: center;
  }

  .main-navigation {
    position: absolute;

    left: 14px;
    right: 14px;

    top: 74px;

    display: none;

    flex-direction: column;

    align-items: stretch;

    padding: 10px;

    border-radius:
      var(--radius-lg);

    background:
      var(--mei-navy-2);

    border:
      1px solid
      rgba(255, 255, 255, 0.08);

    box-shadow:
      0 20px 50px
      rgba(0, 0, 0, 0.25);
  }

  .main-navigation.open {
    display: flex;
  }

  .main-navigation a {
    padding:
      12px 13px;
  }

  .nav-actions {
    display: none;
  }

  .hero-section {
    padding:
      65px 0;
  }

  .stats-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .stat-item:nth-child(-n + 2) {
    border-bottom:
      1px solid var(--mei-border);
  }

  .emergency-content {
    flex-direction: column;

    align-items: flex-start;
  }

  .partners-grid,
  .about-grid {
    grid-template-columns:
      1fr;

    gap: 25px;
  }

}


/* ============================================================
   30. RESPONSIVE — SMALL MOBILE
   ============================================================ */

@media (max-width: 600px) {

  .container,
  .container-wide {
    width:
      calc(100% - 28px);
  }

  .hero-grid {
    width:
      calc(100% - 28px);
  }

  .hero-content h1 {
    font-size:
      clamp(2.5rem, 13vw, 4rem);
  }

  .hero-content p {
    font-size:
      0.88rem;
  }

  .hero-actions {
    flex-direction:
      column;

    align-items:
      stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .services-section,
  .how-section,
  .partners-section,
  .about-section {
    padding:
      65px 0;
  }

  .services-grid,
  .steps-grid {
    grid-template-columns:
      1fr;
  }

  .service-card {
    min-height:
      175px;
  }

  .partner-types {
    grid-template-columns:
      1fr;
  }

  .footer-grid {
    grid-template-columns:
      1fr;
  }

  .footer-bottom {
    flex-direction:
      column;
  }

  .modal {
    padding:
      12px;
  }

  .modal-dialog {
    padding:
      25px 18px;
  }

}


/* ============================================================
   31. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior:
      auto;
  }

  *,
  *::before,
  *::after {
    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }

}
