/* MEC Efficiency — site styles
   No external fonts or frameworks: system font stack for fast loading. */

:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #13355f;
  --teal-700: #0b6e72;
  --teal-600: #0e8a8f;
  --teal-500: #14a3a8;
  --teal-100: #dff2f2;
  --green-600: #4f9a3c; /* harmonises with the leaf mark; adjust to exact logo green */
  --green-100: #e8f3e3;
  --ink: #142033;
  --ink-soft: #46546a;
  --line: #d9e1ea;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(7, 26, 51, .06), 0 8px 24px rgba(7, 26, 51, .06);
  --focus: 0 0 0 3px #fff, 0 0 0 6px #14a3a8;
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
h4 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
.h3 { font-size: 1.25rem; font-weight: 650; }
.h4 { font-size: 1.05rem; font-weight: 650; }
.hint { font-size: .88rem; color: var(--ink-soft); }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-800); color: #dbe5f0; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-700); margin-bottom: .75rem;
}
.section--navy .eyebrow, .hero .eyebrow { color: #7fd6d9; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy-800); color: #fff; padding: .7rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none;
  border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--teal-600); color: #fff; }
.btn--primary:hover { background: var(--teal-700); color: #fff; }
.btn--outline { border-color: currentColor; color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn--light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }

/* Brand lockup: the standard MEC logo image is used as-is; "Efficiency" is set beside it. */
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand__logo { height: 42px; width: auto; }
.brand__word {
  font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; color: var(--navy-800);
  padding-left: .65rem; border-left: 2px solid var(--line); line-height: 1.1;
}
.site-footer .brand__word { color: #fff; border-left-color: rgba(255,255,255,.25); }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  min-height: 44px; padding: .5rem .8rem; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--navy-800);
  font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars { width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  display: block; white-space: nowrap; padding: .55rem .8rem; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--navy-800); }
.site-nav a[aria-current="page"] { color: var(--teal-700); box-shadow: inset 0 -2px 0 var(--teal-600); border-radius: 0; }
.site-nav .nav-lang a { color: var(--teal-700); font-weight: 650; border: 1px solid var(--line); margin-left: .35rem; }
.site-nav .nav-lang a:hover { border-color: var(--teal-600); }
.site-nav .nav-cta a { background: var(--teal-600); color: #fff; margin-left: .5rem; border-radius: 8px; }
.site-nav .nav-cta a:hover { background: var(--teal-700); }
.site-nav .nav-cta a[aria-current="page"] { box-shadow: none; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .site-nav[data-open="false"] { display: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .15rem; }
  .site-nav a { padding: .85rem .75rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal-600); }
  .site-nav .nav-cta a { margin: .5rem 0 0; text-align: center; }
  .site-nav .nav-lang a { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 55%, #0d3b55 100%);
  color: #d5e2ef;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(7, 26, 51, .96) 0%, rgba(11, 37, 69, .88) 45%, rgba(11, 37, 69, .45) 100%);
}
.hero__credit { position: absolute; right: 1rem; bottom: .6rem; z-index: 2; margin: 0; font-size: .75rem; color: #9fb4ca; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 720px); gap: 3rem; align-items: center; padding: clamp(4.5rem, 10vw, 8rem) 0; }
@media (max-width: 860px) {
  .hero::before { background: linear-gradient(180deg, rgba(7, 26, 51, .88), rgba(11, 37, 69, .72)); }
  .hero__credit { left: 1rem; }
}
.hero h1 { color: #fff; }
.hero .lead { color: #c3d3e4; }
.hero__art { color: #7fd6d9; opacity: .95; }
.hero__note { font-size: .8rem; color: #8fa6bf; margin-top: .5rem; }
.hero__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); border: 1px solid rgba(127, 214, 217, .25); }
.hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; }
}

.page-hero { background: var(--navy-800); color: #c9d7e6; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: #fff; margin-bottom: .4em; }
.page-hero .lead { color: #c3d3e4; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; display: flex; flex-direction: column;
}
.card p { color: var(--ink-soft); }
.card--media { overflow: hidden; }
.card__media { margin: -1.6rem -1.6rem 1.25rem; aspect-ratio: 5 / 3; background: var(--navy-800); }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-700); margin-bottom: 1rem;
}
.card__link { margin-top: auto; font-weight: 650; text-decoration: none; }
.card__link::after { content: " →"; }
.card--feature {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
  border-color: var(--teal-500); background: linear-gradient(180deg, #fff, #f3fbfb);
}
@media (max-width: 860px) { .card--feature { grid-template-columns: 1fr; } }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--green-100); color: #2f6b22; border-radius: 999px; padding: .2rem .7rem; margin-bottom: .8rem;
}

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--teal-600); border-bottom: 2.5px solid var(--teal-600); transform: rotate(-45deg);
}

/* ---------- Illustrative chart ---------- */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.25rem 1rem; }
.chart-card__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.chart-label {
  font-size: .78rem; font-weight: 700; color: #7a4b00; background: #fff4dc; border: 1px solid #f0d9a6;
  border-radius: 6px; padding: .25rem .6rem;
}
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button {
  font: inherit; font-size: .85rem; font-weight: 600; padding: .45rem .8rem; min-height: 40px;
  background: #fff; color: var(--ink-soft); border: 0; cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--navy-800); color: #fff; }
.chart svg { width: 100%; height: auto; }
.chart .axis text { font-size: 12px; fill: #5a6b80; }
.chart .gridline { stroke: #e7edf3; }
.chart-caption { font-size: .88rem; color: var(--ink-soft); margin: .6rem 0 0; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; background: var(--c); }

/* ---------- Approach steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; position: relative; padding: 1.5rem; border-radius: var(--radius-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: .85rem; font-weight: 800; letter-spacing: .1em; color: #7fd6d9; margin-bottom: .6rem;
}
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: #c3d3e4; }
.section--soft .steps li, .steps--light li { background: #fff; border-color: var(--line); }
.steps--light li::before { color: var(--teal-700); }
.steps--light p { color: var(--ink-soft); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Service accordion (details/summary) ---------- */
.service { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; margin-bottom: 1rem; scroll-margin-top: 90px; }
.service[open] { border-color: var(--teal-500); box-shadow: var(--shadow); }
.service > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 1.25rem 1.4rem; border-radius: var(--radius-lg);
}
.service > summary::-webkit-details-marker { display: none; }
.service__num {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-weight: 750;
}
.service--featured .service__num { background: var(--teal-600); }
.service__title { margin: 0; font-size: 1.2rem; }
.service__sum { display: block; color: var(--ink-soft); font-size: .97rem; font-weight: 400; margin-top: .2rem; }
.service__chev { width: 14px; height: 14px; border-right: 2.5px solid var(--navy-800); border-bottom: 2.5px solid var(--navy-800); transform: rotate(45deg); margin: 0 .4rem; transition: transform .2s; }
.service[open] .service__chev { transform: rotate(-135deg); }
.service__body { padding: 0 1.4rem 1.5rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.service__body h4 { margin-top: .4rem; }
.service__aside { background: var(--bg-soft); border-radius: var(--radius); padding: 1.2rem 1.3rem; font-size: .96rem; }
.service__aside p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .service__body { grid-template-columns: 1fr; gap: 1rem; } .service > summary { grid-template-columns: auto 1fr; } .service__chev { display: none; } }

.service-controls { display: flex; gap: .75rem; justify-content: flex-end; margin-bottom: 1rem; }
.link-btn { background: none; border: 0; padding: .4rem .2rem; font: inherit; font-weight: 600; color: var(--teal-700); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tabs (industries) ---------- */
.tablist { display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.tablist [role="tab"] {
  font: inherit; font-weight: 650; font-size: 1rem; color: var(--ink-soft);
  background: none; border: 0; border-bottom: 3px solid transparent;
  padding: .9rem 1.1rem; min-height: 48px; cursor: pointer; margin-bottom: -1px;
}
.tablist [role="tab"]:hover { color: var(--navy-800); }
.tablist [role="tab"][aria-selected="true"] { color: var(--navy-800); border-bottom-color: var(--teal-600); }
html:not(.js) .tablist { display: none; }
html:not(.js) .tabpanel { margin-bottom: 3rem; }
.tabpanel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; }
.tabpanel[hidden] { display: none; }
@media (max-width: 860px) { .tabpanel { grid-template-columns: 1fr; gap: 1.5rem; } }
.priority { border-left: 4px solid var(--teal-600); background: var(--teal-100); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.priority strong { color: var(--navy-800); }
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.svc-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; background: #fff; }
.svc-list li.is-primary { border-color: var(--teal-500); background: #f3fbfb; }
.svc-list strong { display: block; color: var(--navy-800); }
.svc-list span { font-size: .93rem; color: var(--ink-soft); }

/* ---------- Media slot (illustrations / licensed photos) ---------- */
.media { border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-800); color: #7fd6d9; aspect-ratio: 4 / 3; }
.media img, .media svg { width: 100%; height: 100%; object-fit: cover; }
.media-credit { font-size: .78rem; color: var(--ink-soft); margin-top: .4rem; }

/* ---------- Notices ---------- */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--navy-700); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; font-size: .95rem; color: var(--ink-soft); }
.notice strong { color: var(--navy-800); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(110deg, var(--teal-700), var(--navy-800)); color: #dceaf2; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.25rem); display: grid; grid-template-columns: 1.5fr auto; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: .35rem; color: var(--navy-800); }
.field .req { color: #b42318; }
.field .hint { display: block; font-size: .85rem; color: var(--ink-soft); margin: -.15rem 0 .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7rem .85rem; min-height: 48px; border: 1.5px solid #b9c6d4; border-radius: 8px; background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--teal-600); }
.field [aria-invalid="true"] { border-color: #b42318; background: #fffafa; }
.field .error { display: block; color: #b42318; font-size: .88rem; font-weight: 600; margin-top: .35rem; min-height: 0; }
.field .error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.25rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status--error { background: #fef3f2; border: 1px solid #fecdca; color: #7a271a; }
.form-status--success { background: var(--green-100); border: 1px solid #b9dcae; color: #234f19; }
.form-status ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.form-foot small { color: var(--ink-soft); max-width: 30rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a9bad0; padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #d5e2ef; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; font-size: .85rem; color: #8ea2bb; }
.footer-legal p { margin-bottom: .6rem; }
.footer-brand .brand__logo { background: #fff; border-radius: 8px; padding: 4px 6px; height: 46px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; }
.center { text-align: center; }
