/* ============================================================
   Mi-Fusion (mi-fusion.com) — design tokens (measured from live site)
   Fonts: Rubik (hero/headings/body) · Roboto (select headings + legal/forms)
          Poppins (footer headings) · Roboto Slab (loaded for parity)
   WordPress/Elementor (hello-elementor) parity — hand-written static rebuild
   ============================================================ */
:root {
  --ink:        #333333;  /* html base text */
  --navy:       #0d184a;  /* primary body / heading ink (dark navy) */
  --navy-2:     #1a1a37;  /* header bar / heading variant */
  --navy-3:     #1c1c34;  /* "Visualize" heading */
  --steel:      #4a618d;  /* "Integrate"/"Structure" headings */
  --orange:     #f75c29;  /* brand accent / CTA button */
  --orange-2:   #f75d29;  /* heading accent (Command / data security) */
  --orange-3:   #f46031;  /* "Analyze" heading */
  --grey-text:  #7a7a7a;  /* legal body + footer links + form note */
  --white:      #ffffff;
  --light:      #f8fafd;  /* light section band */
  --foot:       #101a2e;  /* footer band */
  --cta-band:   #232f4d;  /* "Learn more" CTA band */
  --blue:       #066aab;  /* contact submit button */
  --field-bg:   #f7f8fa;  /* form input background */
  --field-line: #d8dbe2;  /* form input border */

  --container: 1140px;
  --radius:    12px 0;     /* brand button radius (top-left + bottom-right) */
  --shadow:    0 14px 40px rgba(13,24,74,.12);

  --rubik:   "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --roboto:  "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --poppins: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sys:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset-ish ---- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sys);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-family: var(--rubik); color: var(--navy); font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; width: 100%; }
.container.narrow { max-width: 910px; }

/* ---- Skip link ---- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy-2); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip:focus { left: 12px; top: 12px; }

/* ============================================================
   Header — navy bar; logo top-left, nav row beneath (left)
   ============================================================ */
.site-header { background: var(--navy-2); }
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 16px 15px 32px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 520px; max-width: 100%; height: auto; }

.nav-row { display: flex; align-items: center; width: 100%; }
.primary-nav { display: flex; align-items: center; }
.primary-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  font-family: var(--sys); color: #fff; font-size: 16px; font-weight: 400;
  line-height: 1.5; padding: 4px 0; display: inline-block; transition: color .15s;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--orange); }

.nav-toggle {
  display: none; width: 44px; height: 38px; background: transparent;
  border: 1px solid rgba(255,255,255,.4); border-radius: 6px; cursor: pointer; padding: 0;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center; margin-left: auto;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Hero — full-width dark background image, left-aligned text
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy-2) center / cover no-repeat;
  color: #fff;
}
.hero-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 15px;
  min-height: 435px; display: flex; flex-direction: column; justify-content: center;
}
.hero-title { font-family: var(--rubik); font-weight: 600; font-size: 65px; line-height: 1.2; color: #fff; margin: 0; }
.hero-sub   { font-family: var(--rubik); font-weight: 500; font-size: 24px; line-height: 1.17; letter-spacing: .5px; color: #fff; margin: 14px 0 0; }
.hero--home { background-image: url("assets/home-hero.png"); }
.hero--platform, .hero--privacy { background-image: url("assets/platform-hero.png"); }
.hero--benefits { background-image: url("assets/benefits-hero.png"); }
.hero--contact { background-image: url("assets/contact-hero.png"); }
/* 404 / no-image hero keeps the solid navy bar */
.hero--solid { background-image: none; background: var(--navy-2); }

/* ============================================================
   Sections / bands
   ============================================================ */
.section { padding: 60px 0; }
.section.tight { padding: 40px 0; }
.section-light { background: var(--light); }

.lead {
  font-family: var(--rubik); font-size: 20px; font-weight: 300; line-height: 1.4; color: var(--navy);
}
.lead.justify { text-align: justify; }
.lead p { margin: 0 0 1em; }
.lead p:last-child { margin-bottom: 0; }

.section-title {
  font-family: var(--rubik); font-weight: 400; font-size: 28px; line-height: 1.2;
  color: var(--navy); text-align: center; margin: 0 0 26px;
}

/* orange statement heading (Command / data security) */
.accent-head { font-family: var(--rubik); font-weight: 500; font-size: 28px; line-height: 1.2; color: var(--orange-2); margin: 0; }
.accent-head.roboto { font-family: var(--roboto); }
.accent-head.center { text-align: center; }

/* bullet lists (benefits / capabilities) */
.bullets { margin: 0; padding-left: 1.2em; list-style: disc; }
.bullets li { font-family: var(--rubik); font-size: 20px; font-weight: 300; line-height: 1.5; color: var(--navy); margin-bottom: .35em; }

/* ============================================================
   Two-column content rows (text + image)
   ============================================================ */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  max-width: var(--container); margin: 0 auto; padding: 0 15px;
}
.two-col.rev .two-col-media { order: 2; }
.two-col-media img { width: 100%; height: auto; border-radius: 6px; }
.two-col-body h3 { font-family: var(--rubik); font-weight: 500; font-size: 18px; color: #000; margin: 0 0 10px; }

/* ============================================================
   Platform process diagram (Integrate / Visualize / Structure / Analyze)
   ============================================================ */
.flow { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.flow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.flow-cell { text-align: center; }
.flow-cell h2 { font-family: var(--rubik); font-weight: 500; font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
.flow-cell p  { font-family: var(--rubik); font-weight: 300; font-size: 16px; line-height: 1.5; color: var(--navy); margin: 0; max-width: 420px; }
.flow-cell.center-p p { margin: 0 auto; }
.flow-cell .c-integrate { color: var(--steel); }
.flow-cell .c-visualize { color: var(--navy-3); }
.flow-cell .c-structure { color: var(--steel); }
.flow-cell .c-analyze   { color: var(--orange-3); }
.flow-diagram { margin: 18px 0; }
.flow-diagram img { width: 100%; max-width: 988px; height: auto; margin: 0 auto; }

/* sub-feature blocks (Global Platform / Regional Instances / ...) */
.subfeatures { display: flex; flex-direction: column; gap: 22px; }
.subfeature h3 { font-family: var(--rubik); font-weight: 500; font-size: 18px; color: var(--navy-2); margin: 0 0 6px; }
.subfeature p  { font-family: var(--rubik); font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--navy); margin: 0; }

/* ============================================================
   CTA band ("Learn more about Mi-Fusion →" + button)
   ============================================================ */
.cta-band { background: var(--cta-band); padding: 40px 0; text-align: center; }
.cta-band .cta-text { font-family: var(--roboto); font-weight: 500; font-size: 18px; letter-spacing: .5px; color: #fff; margin: 0 0 18px; }
.btn {
  display: inline-block; font-family: var(--roboto); font-size: 18px; font-weight: 500; line-height: 1;
  color: #fff; background: var(--orange); border: 0; border-radius: var(--radius);
  padding: 20px 40px; cursor: pointer; transition: filter .15s; text-align: center;
}
.btn:hover { filter: brightness(1.06); }

/* ============================================================
   Contact form (static)
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.contact-media img { width: 100%; height: auto; border-radius: 6px; }
.form-note { font-family: var(--roboto); font-size: 16px; color: var(--grey-text); margin: 0 0 18px; }
.mf-form { display: flex; flex-direction: column; gap: 16px; }
.mf-form .field { display: flex; flex-direction: column; }
.mf-form input, .mf-form textarea {
  font-family: var(--sys); font-size: 16px; color: var(--navy);
  background: var(--field-bg); border: 1px solid var(--field-line); border-radius: 3px;
  padding: 11px 14px; width: 100%;
}
.mf-form input::placeholder, .mf-form textarea::placeholder { color: #9aa0ad; opacity: 1; }
.mf-form textarea { min-height: 120px; resize: vertical; }
.btn-submit {
  align-self: flex-start; font-family: var(--sys); font-size: 17px; font-weight: 500;
  color: #fff; background: var(--blue); border: 0; border-radius: 3px;
  padding: 10px 18px; cursor: pointer; transition: filter .15s;
}
.btn-submit:hover { filter: brightness(1.08); }
.form-status { font-family: var(--roboto); font-size: 14px; color: var(--grey-text); margin: 8px 0 0; }

/* ============================================================
   Legal pages (privacy policy)
   ============================================================ */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-family: var(--roboto); font-weight: 500; font-size: 32px; line-height: 1.2; color: var(--grey-text); margin: 36px 0 14px; }
.legal h3 { font-family: var(--roboto); font-weight: 500; font-size: 28px; line-height: 1.2; color: var(--grey-text); margin: 30px 0 12px; }
.legal h4 { font-family: var(--roboto); font-weight: 500; font-size: 20px; color: var(--grey-text); margin: 22px 0 8px; }
.legal p, .legal li { font-family: var(--roboto); font-size: 16px; line-height: 1.5; color: var(--grey-text); }
.legal p { margin: 0 0 1em; }
.legal ul { margin: 0 0 1em; padding-left: 1.4em; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--blue); }
.legal .lead-emph { font-style: italic; }

/* 404 */
.page-404 { padding: 90px 0; text-align: center; }
.page-404 h1 { font-family: var(--rubik); font-weight: 600; font-size: 56px; color: var(--navy); margin: 0 0 16px; }
.page-404 p { font-family: var(--roboto); font-size: 18px; color: var(--grey-text); margin: 0 0 24px; }
.page-404 a { color: var(--blue); }

/* ============================================================
   Footer band (dark navy)
   ============================================================ */
.footer-band { background: var(--foot); color: #fff; padding: 46px 0 0; }
.footer-grid {
  max-width: var(--container); margin: 0 auto; padding: 0 15px 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; align-items: start;
}
.footer-logo img { width: 240px; height: auto; }
.footer-col h2 { font-family: var(--poppins); font-weight: 300; font-size: 16px; line-height: 1.5; color: #fff; margin: 0 0 10px; }
.footer-col a, .footer-col p { font-family: var(--roboto); font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--grey-text); margin: 0; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0; text-align: center; }
.footer-bottom p { font-family: var(--sys); font-size: 16px; color: #fff; margin: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-row { position: relative; }
  .primary-nav {
    position: absolute; top: calc(100% + 8px); right: 0; left: 0; background: var(--navy-2);
    flex-direction: column; align-items: stretch; padding: 6px 0; display: none;
    box-shadow: var(--shadow); z-index: 70; border-radius: 6px;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { padding: 12px 18px; }
}
@media (max-width: 900px) {
  .hero-title { font-size: 48px; }
  .hero-sub { font-size: 20px; }
  .two-col, .two-col.rev, .contact-grid, .flow-row { grid-template-columns: 1fr; gap: 30px; }
  .two-col.rev .two-col-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; text-align: left; }
  .brand img { width: 360px; max-width: 80%; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 18px; }
  .hero-inner { min-height: 320px; padding: 50px 15px; }
  .section { padding: 45px 0; }
  .section-title, .accent-head { font-size: 24px; }
  .lead, .bullets li { font-size: 18px; }
  .btn { padding: 16px 30px; font-size: 16px; }
  .legal h2 { font-size: 26px; }
  .legal h3 { font-size: 22px; }
  .brand img { width: 280px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
