
/* ==========================================================
   MOONSHOT ECO FUELS
   Joomla 6 / Cassiopeia / Fluid layout
   Complete replacement user.css
   ========================================================== */

/* 01 — JOOMLA LAYOUT */

html {
  overflow-x: clip;
}

body:has(.mef-site) {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: clip;
}

body:has(.mef-site) > .container-header,
body:has(.mef-site) .mod-breadcrumbs__wrapper,
body:has(.mef-site) .mod-breadcrumbs {
  display: none !important;
}

body:has(.mef-site) > .site-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: none !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.mef-site) > .site-grid > .container-component {
  grid-area: auto !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.mef-site) .container-component > main,
body:has(.mef-site) .com-content-article,
body:has(.mef-site) .com-content-article__body,
body:has(.mef-site) .item-page {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.mef-site) .page-header {
  display: none !important;
}

/* 02 — BRAND AND BASE */

.mef-site {
  --mef-bg: #071218;
  --mef-dark: #0d222d;
  --mef-panel: #132b35;
  --mef-ink: #edf6f8;
  --mef-muted: #b4c7d0;
  --mef-cyan: #63caee;
  --mef-cyan-light: #8fdff5;
  --mef-orange: #e47651;
  --mef-green: #8bcf4a;
  --mef-border: #30515e;

  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: clip;
  background: var(--mef-bg);
  color: var(--mef-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

.mef-site img {
  max-width: 100%;
  height: auto;
}

.mef-site .mef-wrap {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 32px;
}

.mef-site h1,
.mef-site h2,
.mef-site h3,
.mef-site h4 {
  font-family: Arial, Helvetica, sans-serif;
  color: inherit;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.mef-site h1 {
  margin: 30px 0;
  font-size: clamp(3rem, 6.6vw, 7rem);
  font-weight: 800;
}

.mef-site h2 {
  margin: 18px 0 28px;
  font-size: clamp(2.3rem, 4.8vw, 5rem);
  font-weight: 750;
}

.mef-site h3 {
  margin: 0 0 16px;
  font-size: 1.45rem;
  font-weight: 700;
}

.mef-site h4 {
  font-size: 1.1rem;
}

.mef-site em {
  color: var(--mef-cyan);
  font-style: normal;
}

.mef-site p {
  margin-top: 0;
}

.mef-site a {
  color: var(--mef-cyan);
}

.mef-site button,
.mef-site input,
.mef-site select,
.mef-site textarea {
  font: inherit;
}

.mef-site :focus-visible {
  outline: 3px solid var(--mef-cyan);
  outline-offset: 3px;
}

/* 03 — LOGO AND NAVIGATION */

.mef-header {
  position: relative;
  z-index: 5;
  padding: 24px 0;
}

.mef-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.mef-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.mef-site .mef-brand img {
  display: block;
  width: 120px !important;
  max-width: 120px !important;
  height: auto !important;
}

.mef-hero .mef-brand {
  padding: 10px 14px;
  background: rgba(4, 15, 22, 0.68);
  border: 1px solid rgba(99, 202, 238, 0.2);
  border-radius: 7px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.mef-hero .mef-brand img {
  filter: brightness(1.15) contrast(1.12);
}

.mef-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px 22px;
}

.mef-nav a {
  padding: 6px 0;
  color: #fff;
  border-bottom: 1px solid transparent;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
}

.mef-nav a:hover {
  color: var(--mef-cyan);
  border-color: var(--mef-cyan);
}

/* 04 — CONSISTENT CSS ARROWS
   No Unicode or emoji arrows required. */

.mef-arrow {
  display: inline-block;
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  margin-left: 5px;
  vertical-align: middle;
  color: currentColor;
}

.mef-arrow::before {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.mef-arrow::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 2px;
  width: 13px;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.mef-button,
.mef-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mef-button {
  justify-content: center;
  padding: 15px 24px;
  min-height: 50px;
  background: var(--mef-cyan);
  border: 1px solid var(--mef-cyan);
  border-radius: 3px;
  color: #071218 !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
  text-align: center;
  transition: background 0.2s ease;
}

.mef-button:hover {
  background: var(--mef-cyan-light);
}

.mef-button-secondary {
  background: rgba(7, 18, 24, 0.55);
  border-color: #7c929a;
  color: #fff !important;
}

.mef-button-secondary:hover {
  background: rgba(32, 66, 79, 0.9);
}

.mef-link {
  padding: 6px 0;
  border-bottom: 1px solid var(--mef-cyan);
  color: var(--mef-cyan);
  font-weight: 700;
  text-decoration: none;
}

.mef-link:hover {
  color: #fff;
}

/* 05 — HOMEPAGE HERO */

.mef-hero {
  display: flex;
  position: relative;
  isolation: isolate;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: #071218;
}

.mef-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(
      110deg,
      rgba(4, 10, 15, 0.86) 0%,
      rgba(7, 20, 28, 0.69) 45%,
      rgba(8, 22, 30, 0.32) 100%
    ),
    url("/images/moonshot/hero-city.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mef-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30vh;
  z-index: -1;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(7, 18, 24, 0.65),
    #071218
  );
}

.mef-hero-main {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 75px;
}

.mef-kicker {
  margin-bottom: 20px;
  color: var(--mef-cyan-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.mef-hero h1 {
  max-width: 1250px;
}

.mef-hero h1 em {
  color: var(--mef-cyan);
}

.mef-lead {
  max-width: 780px;
  margin-bottom: 32px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.mef-hero-actions,
.mef-proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.mef-hero-end {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 28px;
  padding: 26px max(32px, calc((100% - 1336px) / 2));
  background: rgba(7, 18, 24, 0.85);
  border-top: 1px solid var(--mef-border);
}

.mef-hero-end > * {
  margin: 0;
}

.mef-hero-end > span {
  font-size: 0.85rem;
}

.mef-hero-end strong {
  font-size: 1.2rem;
  line-height: 1.3;
}

.mef-hero-end small {
  font-size: 0.82rem;
}

/* 06 — COMMON SECTIONS */

.mef-section {
  padding: 105px 0;
  border-top: 1px solid var(--mef-border);
}

.mef-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  margin-bottom: 24px;
  color: var(--mef-cyan);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mef-eyebrow span {
  color: var(--mef-muted);
}

.mef-intro {
  max-width: 875px;
  font-size: 1.22rem;
  line-height: 1.65;
}

.mef-note {
  max-width: 900px;
  color: var(--mef-muted);
  font-size: 0.84rem;
}

/* 07 — GLOBAL PROOF */

.mef-proof {
  padding: 85px 0;
  background: #f3f6f8;
  color: #102432;
  border-top: 0;
}

.mef-proof .mef-eyebrow {
  color: #087fa5;
}

.mef-proof .mef-eyebrow span {
  color: #647b87;
}

.mef-proof h2 {
  color: #102432;
}

.mef-proof h2 em {
  color: #159ecb;
}

.mef-proof .mef-intro {
  margin-bottom: 42px;
  color: #526674;
}

.mef-proof-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 34px;
}

.mef-proof-stat {
  display: flex;
  position: relative;
  align-items: center;
  gap: 22px;
  min-width: 0;
  min-height: 178px;
  padding: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d222d, #153b49);
  color: #fff;
  border: 1px solid rgba(99, 202, 238, 0.26);
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(7, 18, 24, 0.12);
}

.mef-proof-stat::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 145px;
  height: 145px;
  background: radial-gradient(
    circle,
    rgba(99, 202, 238, 0.16),
    transparent 72%
  );
  pointer-events: none;
}

.mef-proof-icon {
  display: grid;
  flex: 0 0 66px;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(99, 202, 238, 0.28);
  border-radius: 50%;
  background: rgba(99, 202, 238, 0.12);
  color: var(--mef-cyan);
}

.mef-proof-icon svg {
  display: block;
  width: 31px;
  height: 31px;
}

.mef-proof-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.mef-proof-copy strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.mef-proof-copy strong span {
  color: var(--mef-green);
}

.mef-proof-copy p {
  margin-bottom: 7px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.mef-proof-copy small {
  display: block;
  color: #bdd0d8;
  font-size: 0.88rem;
  line-height: 1.45;
}

.mef-proof .mef-button-secondary {
  background: transparent;
  border-color: #7895a4;
  color: #173543 !important;
}

.mef-proof .mef-button-secondary:hover {
  background: #e0eaf0;
}

/* 08 — EASIEST UPGRADE */

.mef-easy-upgrade {
  padding: 90px 0;
  background: #0d222d;
  color: #edf6f8;
  border-block: 1px solid var(--mef-border);
}

.mef-easy-upgrade h2 {
  max-width: 1100px;
}

.mef-easy-upgrade-lead {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
}

.mef-easy-upgrade-copy {
  max-width: 800px;
  margin-bottom: 28px;
  color: #b8cbd3;
  font-size: 1.17rem;
}

/* 09 — THE CONDITIONER */

.mef-concept {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 50px 0;
  padding: 30px;
  background: #162d34;
  border: 1px solid var(--mef-border);
}

.mef-concept > span {
  color: var(--mef-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.mef-concept > strong {
  color: var(--mef-orange);
  font-size: 3rem;
  line-height: 1;
}

.mef-concept p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.4;
}

.mef-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin: 50px 0;
}

.mef-grid article {
  padding-top: 22px;
  border-top: 1px solid var(--mef-border);
}

.mef-grid article > span {
  color: var(--mef-cyan);
  font-weight: 700;
}

.mef-grid article h3 {
  margin-top: 12px;
}

.mef-grid article p {
  color: var(--mef-muted);
}

/* 10 — WHY NOW */

.mef-purpose {
  background: #e7edf0;
  color: #102029;
}

.mef-purpose .mef-eyebrow,
.mef-purpose em {
  color: #0f9bcc;
}

.mef-purpose .mef-eyebrow span {
  color: #54646f;
}

.mef-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
}

.mef-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.mef-mini-stats div {
  min-width: 0;
  padding: 18px;
  background: #f5f9fb;
  border: 1px solid #c2d5de;
}

.mef-mini-stats strong {
  display: block;
  margin-bottom: 6px;
  color: #0b81a8;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.mef-mini-stats span {
  display: block;
  color: #536875;
  font-size: 0.85rem;
}

.mef-figure-card {
  padding: 18px;
  background: #f8fbfc;
  border: 1px solid #c2d5de;
}

.mef-figure-card img {
  display: block;
  width: 100%;
  height: auto;
}

.mef-figure-card p {
  margin: 14px 0 0;
  color: #536875;
  font-size: 0.88rem;
}

/* 11 — WHY DIFFERENT */

.mef-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  margin-top: 38px;
}

.mef-panel {
  min-width: 0;
  padding: 32px;
  background: #142a33;
  border: 1px solid var(--mef-border);
}

.mef-panel h3 {
  color: var(--mef-cyan);
}

.mef-panel p {
  color: #c4d1d7;
}

/* 12 — CALCULATOR */

.mef-calculator-section {
  background: #0a1820;
}

.mef-calc {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 24px;
  margin: 40px 0 25px;
}

.mef-calc-fields,
.mef-calc-results {
  min-width: 0;
  margin: 0;
  padding: 30px;
  background: #132730;
  border: 1px solid #33505c;
}

.mef-calc-results {
  background: #102832;
}

.mef-calc-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.mef-calc-heading h3 {
  margin: 0;
}

.mef-required-note,
.mef-rrp-note {
  color: #bdcfd7;
  font-size: 0.83rem;
}

.mef-calc-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.mef-calc label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 700;
}

.mef-calc input,
.mef-calc select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 11px 12px;
  background: #f7fbfc;
  color: #102029;
  border: 1px solid #a8c6d2;
  border-radius: 3px;
}

.mef-calc .mef-missing {
  border: 2px solid var(--mef-orange);
}

.mef-reset,
.mef-calc button[type="reset"] {
  min-height: 42px;
  padding: 10px 15px;
  background: var(--mef-orange);
  color: #071218;
  border: 1px solid #f0a080;
  border-radius: 3px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
}

.mef-calc-fixed-settings {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #395964;
}

.mef-setting-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #304d59;
}

.mef-setting-row strong {
  color: var(--mef-cyan);
  text-align: right;
}

.mef-calc-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #4f3028;
  color: #ffe7dc;
  border: 1px solid var(--mef-orange);
}

.mef-calc-error[hidden] {
  display: none !important;
}

.mef-result-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 0 24px;
  border-bottom: 1px solid #496773;
}

.mef-result-main > strong {
  color: var(--mef-cyan);
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.mef-result-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #334f5a;
}

.mef-result-list span {
  font-size: 0.9rem;
}

.mef-result-list strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.mef-calc-small {
  margin-top: 20px;
  color: #b5c6cd;
  font-size: 0.79rem;
}

/* 13 — DISCLAIMER */

.mef-disclaimer-placeholder {
  margin-top: 25px;
  padding: 24px;
  background: #11242c;
  color: #edf6f8;
  border: 1px dashed #5a7c89;
}

.mef-disclaimer-placeholder > strong {
  display: block;
  margin-bottom: 10px;
}

.mef-disclaimer-placeholder p {
  font-size: 0.9rem;
}

.mef-disclaimer-details summary {
  display: list-item;
  width: fit-content;
  color: var(--mef-cyan);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* 14 — CONTACT */

.mef-contact {
  background: #e7eef2;
  color: #10232e;
}

.mef-contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: start;
}

.mef-contact-copy h2,
.mef-contact-copy h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  line-height: 1.13;
}

.mef-contact-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3.65rem);
}

.mef-contact-copy h2 em {
  display: block;
  color: #0b85af;
}

.mef-contact-copy p {
  max-width: 550px;
  font-size: 1.1rem;
}

.mef-contact-copy small {
  color: #536f7c;
}

.mef-contact-form-wrap {
  min-width: 0;
}

.mef-contact input,
.mef-contact textarea,
.mef-contact select {
  display: block;
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #10232e;
  border: 1px solid #a8b7c0;
  border-radius: 3px;
}

.mef-contact button[type="submit"] {
  padding: 14px 24px;
  background: #50b9e4;
  color: #071218;
  border: 0;
  border-radius: 3px;
  font-weight: 700;
  cursor: pointer;
}

/* 15 — FOOTER */

.mef-footer {
  padding: 45px 0;
  background: #071218;
  color: #edf6f8;
  border-top: 1px solid var(--mef-border);
}

.mef-footer strong {
  font-size: 1.3rem;
}

.mef-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0;
}

.mef-footer a {
  color: var(--mef-cyan);
  font-size: 0.9rem;
  text-decoration: none;
}

.mef-footer small {
  color: #a8b5bc;
}

/* 16 — PRODUCTS PAGE: HERO AND FACTS */

.mef-product-hero {
  padding-bottom: 90px;
  background: linear-gradient(135deg, #071218, #11303d);
  border-bottom: 1px solid var(--mef-border);
}

.mef-product-hero-content {
  padding-top: 75px;
}

.mef-product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 42px 0;
}

.mef-product-facts > div {
  padding: 25px;
  background: #132d37;
  border: 1px solid var(--mef-border);
}

.mef-product-facts span,
.mef-product-facts small {
  display: block;
  color: #b4cbd4;
}

.mef-product-facts strong {
  display: block;
  margin: 12px 0;
  color: var(--mef-cyan);
  font-size: 2.5rem;
}

.mef-product-summary {
  padding: 30px;
  background: #112630;
  border: 1px solid var(--mef-border);
}

/* 17 — PRODUCTS PAGE: BENEFITS */

.mef-benefits {
  background: #081820;
}

.mef-benefit-principles {
  margin: 30px 0;
  padding: 20px 0;
  border-block: 1px solid var(--mef-border);
  font-weight: 700;
}

.mef-benefit-principles span {
  color: var(--mef-cyan);
}

.mef-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mef-metric {
  display: flex;
  gap: 15px;
  min-width: 0;
  padding: 22px;
  background: #132b35;
  border: 1px solid var(--mef-border);
}

.mef-metric-icon {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #193d4c;
  color: #7bdaf6;
  font-size: 1.8rem;
}

.mef-metric-name,
.mef-metric-direction {
  display: block;
  color: #bfd0d8;
  font-size: 0.85rem;
}

.mef-metric strong {
  display: block;
  margin: 10px 0;
  color: var(--mef-cyan);
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.mef-benefit-footnote {
  margin-top: 24px;
  color: #afc4cd;
  font-size: 0.82rem;
}

/* 18 — PRODUCTS PAGE: FUEL TYPES */

.mef-product-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
  margin: 40px 0;
}

.mef-product-columns li {
  margin-bottom: 12px;
}

.mef-fuel-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 28px 0;
}

.mef-fuel-switch-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #147fa3;
  color: #fff !important;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
}

.mef-product-band {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 22px;
  margin: 30px 0;
  background: #173541;
  color: #fff;
  border: 1px solid #396576;
}

.mef-product-band strong {
  color: var(--mef-cyan);
}

/* 19 — PRODUCTS PAGE: APPLICATIONS */

.mef-applications {
  background: #0b1c25;
}

.mef-applications-lead {
  max-width: 950px;
}

.mef-applications-hint {
  color: var(--mef-cyan);
  font-weight: 700;
}

.mef-sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mef-sector-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 230px;
  padding: 24px;
  background: #122b35;
  color: #edf6f8;
  border: 1px solid var(--mef-border);
  text-align: left;
  cursor: pointer;
}

.mef-sector-tile:hover {
  background: #183b47;
  border-color: var(--mef-cyan);
}

.mef-sector-no,
.mef-sector-more {
  color: var(--mef-cyan);
  font-weight: 700;
}

.mef-sector-title {
  font-size: 1.6rem;
  font-weight: 800;
}

.mef-sector-sub {
  color: #bdced5;
}

.mef-sector-more {
  margin-top: auto;
}

.mef-sector-dialog {
  position: fixed;
  inset: 0;
  width: min(700px, calc(100% - 32px));
  max-width: 700px;
  max-height: 85vh;
  margin: auto;
  padding: 30px;
  overflow: auto;
  background: #f1f6f8;
  color: #10252c;
  border: 1px solid #8fbacb;
  border-radius: 8px;
}

.mef-sector-dialog:not([open]) {
  display: none;
}

.mef-sector-dialog::backdrop {
  background: rgba(2, 11, 16, 0.83);
}

.mef-sector-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mef-sector-tag {
  color: #087c9f;
  font-size: 0.78rem;
  font-weight: 700;
}

.mef-sector-dialog h3 {
  margin: 18px 0 8px;
  color: #122b35;
  font-size: 2.3rem;
}

.mef-sector-dialog-sub,
.mef-sector-detail p {
  color: #263d48;
}

.mef-sector-close {
  width: 42px;
  height: 42px;
  background: #dcebf1;
  color: #153745;
  border: 0;
  border-radius: 50%;
  font-size: 1.7rem;
  cursor: pointer;
}

.mef-sector-done {
  margin-top: 16px;
  padding: 12px 20px;
  background: #147fa3;
  color: #fff;
  border: 0;
  cursor: pointer;
}

.mef-product-cta {
  background: #102632;
}

/* 20 — PRODUCTS PAGE: TRIALS */

.mef-trials {
  background: #091a22;
}

.mef-trial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.mef-trial-grid {
  display: grid;
  gap: 15px;
}

.mef-trial-card {
  background: #122d38;
  border: 1px solid #335665;
}

.mef-trial-card[open] {
  border-color: var(--mef-cyan);
}

.mef-trial-card summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  list-style: none;
  cursor: pointer;
}

.mef-trial-card summary::-webkit-details-marker {
  display: none;
}

.mef-trial-number,
.mef-trial-source,
.mef-trial-toggle {
  color: var(--mef-cyan);
}

.mef-trial-name {
  flex: 1;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.mef-trial-name small,
.mef-trial-result small {
  display: block;
  color: #b5c9d1;
  font-size: 0.77rem;
  font-weight: 400;
}

.mef-trial-result {
  text-align: right;
}

.mef-trial-result strong {
  color: var(--mef-cyan);
  font-size: 1.8rem;
}

.mef-trial-detail {
  padding: 20px;
  border-top: 1px solid var(--mef-border);
}

.mef-trial-figure {
  padding: 16px;
  margin: 0;
  background: #101d24;
  border: 1px solid var(--mef-border);
}

.mef-trial-figure img {
  width: 100%;
  height: auto;
}

.mef-trial-figure figcaption {
  margin-top: 12px;
  color: #b4c5cd;
  font-size: 0.83rem;
}

/* 21 — PRODUCTS PAGE: CERTIFICATION */

.mef-certifications {
  background: #e7eef2;
  color: #10232e;
}

.mef-certifications em,
.mef-certifications .mef-eyebrow {
  color: #158cb7;
}

.mef-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 38px 0;
}

.mef-cert-card,
.mef-cert-documents {
  padding: 28px;
  background: #fff;
  border: 1px solid #bfd0d9;
}

.mef-cert-card h3,
.mef-cert-documents h3 {
  color: #0d3244;
}

.mef-cert-card li {
  padding: 10px 0;
  color: #173543;
  border-bottom: 1px solid #dce7ec;
}

.mef-cert-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.mef-cert-links a {
  color: #075b7c;
}

.mef-cert-cta {
  margin-top: 32px;
  padding: 30px;
  background: #102b37;
  color: #edf6f8;
}

/* 22 — TABLET */

@media (max-width: 1100px) {
  .mef-nav {
    gap: 10px 16px;
  }

  .mef-nav a {
    font-size: 0.85rem;
  }

  .mef-calc {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .mef-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .mef-nav {
    justify-content: flex-start;
  }

  .mef-grid,
  .mef-product-facts,
  .mef-metrics-grid,
  .mef-sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mef-split,
  .mef-two-col,
  .mef-product-columns,
  .mef-trial-layout,
  .mef-contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 23 — MOBILE: FULL-BLEED FIX */

@media (max-width: 767px) {
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: clip;
  }

  body:has(.mef-site) > .site-grid,
  body:has(.mef-site) .container-component,
  body:has(.mef-site) .container-component main,
  body:has(.mef-site) .com-content-article,
  body:has(.mef-site) .com-content-article__body,
  body:has(.mef-site) .item-page {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Full-width backgrounds;
     20px content padding. */

  .mef-site {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mef-site .mef-wrap {
    width: 100% !important;
    max-width: none !important;
    margin-inline: auto !important;
    padding-inline: 20px !important;
  }

  /* More compact phone typography */

  .mef-site h1,
  .mef-site .mef-hero h1 {
    font-size: clamp(2.25rem, 9.4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
  }

  .mef-site h2 {
    font-size: clamp(2rem, 7.8vw, 3.1rem);
    line-height: 1.12;
  }

  .mef-site h3 {
    font-size: 1.3rem;
  }

  .mef-lead {
    font-size: 1.1rem;
    line-height: 1.5;
  }

  /* Mobile logo and navigation */

  .mef-header {
    padding: 18px 0;
  }

  .mef-header-row {
    align-items: flex-start;
    gap: 18px;
  }

  .mef-nav {
    justify-content: flex-start;
    gap: 8px 15px;
  }

  .mef-nav a {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* Mobile hero */

  .mef-hero {
    min-height: 100svh;
  }

  .mef-hero::before {
    background-position: 55% center;
  }

  .mef-hero-main {
    padding-top: 42px;
    padding-bottom: 55px;
  }

  .mef-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.13em;
  }

  .mef-hero-actions,
  .mef-proof-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .mef-hero-actions .mef-button,
  .mef-proof-actions .mef-button {
    width: 100%;
    min-height: 54px;
    padding: 13px 17px;
    font-size: 0.94rem;
  }

  /* Bottom strip stays contained */

  .mef-hero-end {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 24px 20px;
  }

  .mef-hero-end > * {
    display: block;
    margin: 0;
  }

  .mef-hero-end strong {
    font-size: 1.2rem;
  }

  /* General section spacing */

  .mef-section,
  .mef-proof,
  .mef-easy-upgrade {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .mef-eyebrow {
    display: block;
    font-size: 0.7rem;
    line-height: 1.5;
    letter-spacing: 0.09em;
  }

  .mef-eyebrow span {
    display: block;
    margin-top: 6px;
    letter-spacing: 0.055em;
  }

  .mef-intro {
    font-size: 1.06rem;
    line-height: 1.6;
  }

  /* Global proof */

  .mef-proof-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .mef-proof-stat {
    min-height: 0;
    padding: 22px;
  }

  .mef-proof-icon {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }

  .mef-proof-icon svg {
    width: 26px;
    height: 26px;
  }

  /* Single column everywhere needed */

  .mef-grid,
  .mef-split,
  .mef-two-col,
  .mef-mini-stats,
  .mef-product-facts,
  .mef-product-columns,
  .mef-metrics-grid,
  .mef-sector-grid,
  .mef-trial-layout,
  .mef-cert-grid,
  .mef-contact-layout,
  .mef-calc,
  .mef-calc-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mef-concept,
  .mef-panel,
  .mef-cert-card,
  .mef-cert-documents {
    padding: 22px;
  }

  /* Calculator */

  .mef-calc-fields,
  .mef-calc-results {
    padding: 20px;
  }

  .mef-calc-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .mef-result-list strong {
    max-width: 55%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mef-disclaimer-placeholder {
    padding: 20px;
  }

  /* Product dialogs */

  .mef-sector-dialog {
    width: calc(100% - 24px);
    padding: 20px;
  }

  .mef-trial-card summary {
    flex-wrap: wrap;
  }

  /* Contact typography */

  .mef-contact-copy h2 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  /* Footer */

  .mef-footer {
    padding: 35px 0;
  }
}

/* 24 — SMALL PHONES */

@media (max-width: 390px) {
  .mef-site .mef-wrap {
    padding-inline: 16px !important;
  }

  .mef-site h1,
  .mef-site .mef-hero h1 {
    font-size: clamp(2.05rem, 9vw, 2.75rem);
  }

  .mef-nav {
    gap: 8px 12px;
  }

  .mef-nav a {
    font-size: 0.78rem;
  }

  .mef-proof-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .mef-hero-end {
    padding-inline: 16px;
  }
}

/* 25 — ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .mef-site *,
  .mef-site *::before,
  .mef-site *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
