/* =====================================================================
   MPS Energy — app shell for phones & tablets (2026-10-26)
   Plain CSS, loaded after the Tailwind bundle so no build step is needed
   on the server (the host has no node/npm).
   ===================================================================== */

.mps-tabbar { display: none; }

/* ---------------------------------------------------------------------
   Rich text (.prose) — the Tailwind typography plugin is not installed
   here, so without this every CMS body renders as one flat wall of text.
   --------------------------------------------------------------------- */
.prose p { margin: 0 0 1em; line-height: 1.85; }
.prose p:last-child { margin-bottom: 0; }

.prose h1, .prose h2, .prose h3, .prose h4 {
  margin: 1.8em 0 .6em;
  font-weight: 700;
  line-height: 1.35;
  color: #0f3255;
}
.prose h1 { font-size: 1.7em; }
.prose h2 { font-size: 1.4em; }
.prose h3 { font-size: 1.18em; }
.prose h4 { font-size: 1.05em; }
.prose > :first-child { margin-top: 0; }

.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .35em 0; }

.prose blockquote {
  margin: 1.3em 0;
  padding: .1em 0 .1em 1.1em;
  border-left: 3px solid rgba(27, 79, 124, .35);
  color: #374151;
}

.prose a { color: #1b4f7c; text-decoration: underline; }
.prose strong { font-weight: 700; color: #0f3255; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose hr { margin: 1.6em 0; border: 0; border-top: 1px solid rgba(15, 50, 85, .12); }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid rgba(15, 50, 85, .12); padding: .5em .7em; }

@media (max-width: 1024px) {

  html { scroll-padding-top: 76px; }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
    -webkit-tap-highlight-color: transparent;
  }

  /* Nothing may push the page sideways on a phone. */
  html, body { overflow-x: hidden; }

  /* ---------- Header: compact app bar ---------- */
  .mps-header { padding-top: env(safe-area-inset-top); }
  .mps-header-bar { height: 64px; }
  .mps-header-spacer { height: calc(64px + env(safe-area-inset-top)); }

  .mps-logo {
    height: 46px;
    margin-top: 0;
    margin-bottom: 0;
  }

  /* The burger was white-on-sky and nearly invisible over the hero. */
  .mps-burger {
    background: rgba(15, 50, 85, .32);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  /* ---------- Mobile menu as a readable sheet ---------- */
  .mps-mobile-menu {
    margin: 0 -1rem;
    padding: 8px 20px calc(18px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 18px 40px -22px rgba(15, 50, 85, .55);
    max-height: calc(100vh - 64px - 80px);
    overflow-y: auto;
  }
  .mps-mobile-menu a,
  .mps-mobile-menu button { color: #1f2937 !important; }
  .mps-mobile-menu > a,
  .mps-mobile-menu > div > button {
    border-bottom: 1px solid rgba(15, 50, 85, .08);
    border-radius: 0;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 15px;
  }

  /* ---------- Hero: fits the screen, no sideways scroll ---------- */
  .mps-hero { min-height: 86svh; }
  .mps-hero h1 {
    font-size: 40px;
    line-height: 1.3;
    letter-spacing: 0;
    overflow-wrap: break-word;
  }
  .mps-hero p { font-size: 16px; }
  .mps-hero .mps-hero-actions a { flex: 1 1 auto; justify-content: center; }

  /* ---------- Touch feel: press, not hover ---------- */
  .card-lift:hover { transform: none; }
  .card-lift:active { transform: scale(.985); }
  a:active, button:active { -webkit-tap-highlight-color: transparent; }

  /* iOS zooms the whole page when a focused input is under 16px. */
  input, select, textarea { font-size: 16px; }

  /* ---------- Bottom tab bar ---------- */
  .mps-tabbar {
    display: grid;
    /* minmax(0,…) so five nowrap labels can never widen the page */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid rgba(15, 50, 85, .10);
    box-shadow: 0 -8px 24px -12px rgba(15, 50, 85, .22);
  }

  .mps-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 52px;
    border-radius: 14px;
    color: #6b7b8c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    transition: color .2s, transform .12s;
  }
  .mps-tabbar a i { font-size: 19px; }
  .mps-tabbar a span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mps-tabbar a.is-active { color: #0f3255; }
  .mps-tabbar a.is-active i { transform: translateY(-1px); }
  .mps-tabbar a:active { transform: scale(.92); }

  .mps-tabbar .mps-tab-cta { color: #0f3255; }
  .mps-tabbar .mps-tab-cta i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-top: -22px;
    border-radius: 50%;
    background: #1b4f7c;
    color: #fff;
    font-size: 18px;
    border: 4px solid #fff;
    box-shadow: 0 10px 22px -6px rgba(27, 79, 124, .65);
  }

  /* The footer sits above the bar. */
  footer { padding-bottom: 28px; }
}

/* Phones ------------------------------------------------------------- */
@media (max-width: 640px) {
  .mps-hero h1 { font-size: 28px; }
  .mps-hero p { font-size: 15px; }
  .mps-logo { height: 40px; }
  .mps-tabbar a { font-size: 10px; }
}

/* =====================================================================
   About page layout (2026-10-27)
   Hand-written because the compiled Tailwind bundle has no col-span-*,
   grid-cols-12 or typography utilities.
   ===================================================================== */

.mps-wrap { max-width: 1152px; margin: 0 auto; padding: 0 20px; }
.mps-wrap--narrow { max-width: 920px; }

/* Section rhythm + soft decorative background ------------------------- */
.mps-section { position: relative; padding: 72px 0; overflow: hidden; }
.mps-section--tight { padding: 48px 0 72px; }
.mps-section--tinted { background: linear-gradient(180deg, #f6f9fc 0%, #eef3f8 100%); }

.mps-section--tinted::before,
.mps-section--tinted::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.mps-section--tinted::before {
  width: 320px; height: 320px;
  top: -120px; right: -80px;
  background: rgba(42, 111, 168, .18);
}
.mps-section--tinted::after {
  width: 260px; height: 260px;
  bottom: -110px; left: -70px;
  background: rgba(27, 79, 124, .12);
}
.mps-section > .mps-wrap { position: relative; z-index: 1; }

/* Anchor chips -------------------------------------------------------- */
.mps-anchors {
  position: sticky;
  top: 80px;
  z-index: 30;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(15, 50, 85, .08);
}
.mps-anchors-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mps-anchors-inner::-webkit-scrollbar { display: none; }
.mps-anchors a {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: #eef2f6;
  color: #44566b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, transform .12s;
}
.mps-anchors a:hover { background: #1b4f7c; color: #fff; }
.mps-anchors a:active { transform: scale(.96); }

/* Stat strip overlapping the banner ----------------------------------- */
.mps-stats {
  position: relative;
  z-index: 20;
  margin-top: -58px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(15, 50, 85, .08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 26px 54px -30px rgba(15, 50, 85, .65);
}
@media (min-width: 768px) { .mps-stats { grid-template-columns: repeat(4, 1fr); } }

.mps-stat {
  background: #fff;
  padding: 26px 16px;
  text-align: center;
  transition: background .25s;
}
.mps-stat:hover { background: #f8fbfe; }
.mps-stat i { font-size: 19px; color: #2a6fa8; }
.mps-stat-value {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, #1b4f7c, #2a6fa8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mps-stat-label { margin-top: 6px; font-size: 12.5px; color: #5b6b7c; }

/* Intro: text + facts card -------------------------------------------- */
.mps-intro { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .mps-intro { grid-template-columns: 7fr 5fr; gap: 3rem; } }

.mps-facts {
  background: linear-gradient(155deg, #1b4f7c 0%, #0f3255 100%);
  color: #fff;
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 24px 46px -28px rgba(15, 50, 85, .8);
}
.mps-facts h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 6px;
}
.mps-fact { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.mps-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.mps-fact i {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  font-size: 14px;
}
.mps-fact-label { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.mps-fact-value { font-size: 15px; font-weight: 600; margin-top: 2px; word-break: break-word; }
.mps-fact-value a { color: #fff; text-decoration: none; }
.mps-fact-value a:hover { text-decoration: underline; }

/* Section heading ------------------------------------------------------ */
.mps-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(27, 79, 124, .1);
  color: #1b4f7c;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.mps-h2 { margin-top: 14px; font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; line-height: 1.3; color: #0f3255; }
.mps-head-center { text-align: center; margin-bottom: 44px; }

/* Executive message panel ---------------------------------------------- */
.mps-message {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 50, 85, .08);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 60px -40px rgba(15, 50, 85, .7);
}
@media (min-width: 900px) { .mps-message { padding: 44px; } }

.mps-message-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .mps-message-grid { grid-template-columns: 5fr 7fr; gap: 2.5rem; align-items: center; } }
@media (min-width: 1024px) { .mps-message-grid { grid-template-columns: 4fr 8fr; gap: 3rem; } }

/* Jump targets must clear the fixed header plus the sticky chip bar. */
#about, #executive-message, #mission, #vision, #executives { scroll-margin-top: 140px; }
@media (max-width: 1024px) {
  #about, #executive-message, #mission, #vision, #executives { scroll-margin-top: 124px; }
}

.mps-photo-frame { position: relative; max-width: 330px; margin: 0 auto; }
@media (min-width: 768px) { .mps-photo-frame { max-width: none; } }
.mps-photo-frame::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border-radius: 1rem;
  background: linear-gradient(140deg, rgba(42, 111, 168, .35), rgba(27, 79, 124, .15));
}

.mps-message-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 20px 44px -24px rgba(15, 50, 85, .75);
  transition: transform .4s ease;
}
.mps-photo-frame:hover .mps-message-photo { transform: translateY(-4px); }

.mps-message-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f6;
  border: 1px solid rgba(15, 50, 85, .12);
  box-shadow: none;
}
.mps-message-photo--empty svg { width: 72px; height: 72px; color: #9fb0c0; }

.mps-quote { position: relative; }
.mps-quote::before {
  content: "\201C";
  position: absolute;
  top: -34px;
  left: -8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 110px;
  line-height: 1;
  color: rgba(27, 79, 124, .12);
  pointer-events: none;
}
.mps-quote > * { position: relative; }

.mps-signature { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(15, 50, 85, .12); }
.mps-signature-name { font-size: 18px; font-weight: 700; color: #0f3255; }
.mps-signature-role { margin-top: 3px; font-size: 13.5px; color: #5b6b7c; }
.mps-signature-rule { width: 46px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #1b4f7c, #2a6fa8); margin-bottom: 14px; }

/* Mission / vision cards ------------------------------------------------ */
.mps-mv-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 820px) { .mps-mv-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.mps-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 50, 85, .08);
  border-radius: 20px;
  padding: 32px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 16px 36px -28px rgba(15, 50, 85, .55);
}
.mps-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #1b4f7c, #2a6fa8);
}
.mps-card:hover { transform: translateY(-6px); box-shadow: 0 28px 54px -30px rgba(15, 50, 85, .6); }
.mps-card--accent::before { background: linear-gradient(90deg, #2a6fa8, #6bb8e0); }

.mps-card-index {
  position: absolute;
  right: 22px;
  top: 16px;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: rgba(15, 50, 85, .05);
}
.mps-card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(27, 79, 124, .1);
  color: #1b4f7c;
  font-size: 20px;
  margin-bottom: 18px;
}
.mps-card--accent .mps-card-icon { background: rgba(42, 111, 168, .12); color: #2a6fa8; }
.mps-card h3 { font-size: 20px; font-weight: 700; color: #0f3255; margin-bottom: 12px; }
.mps-card-body { color: #44566b; line-height: 1.85; }
.mps-card-body ul { list-style: disc; padding-left: 1.25rem; }
.mps-card-body li { margin-bottom: .5rem; }

/* Tap targets ----------------------------------------------------------
   Mobile-friendliness wants ~48px of tappable area; the footer links and
   social icons were well under that.
   ---------------------------------------------------------------------- */
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
footer a[aria-label] {
  justify-content: center;
  min-width: 44px;
}
.mps-anchors a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1024px) {
  footer a { min-height: 48px; }
}

/* Closing call to action ------------------------------------------------ */
.mps-cta {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 44px 32px;
  text-align: center;
  background: linear-gradient(135deg, #0f3255 0%, #1b4f7c 55%, #2a6fa8 100%);
  color: #fff;
}
.mps-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .18), transparent 55%);
  pointer-events: none;
}
.mps-cta h2 { position: relative; font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.mps-cta p { position: relative; margin-top: 10px; color: rgba(255, 255, 255, .85); }
.mps-cta-actions { position: relative; margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.mps-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s;
}
.mps-btn-solid { background: #fff; color: #0f3255; }
.mps-btn-solid:hover { transform: translateY(-2px); }
.mps-btn-ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.mps-btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

/* Phone adjustments ----------------------------------------------------- */
@media (max-width: 1024px) {
  .mps-anchors { top: 64px; }
  .mps-section { padding: 52px 0; }
  .mps-stats { margin-top: -40px; }
  .mps-message { padding: 26px 22px; }
  .mps-card { padding: 26px 22px; }
}

@media (max-width: 640px) {
  .mps-stat-value { font-size: 25px; }
  .mps-quote::before { font-size: 84px; top: -26px; }
}

/* Installed to the home screen ---------------------------------------- */
@media (display-mode: standalone) {
  .mps-header { background: rgba(255, 255, 255, .96); }
}

@media print {
  .mps-tabbar { display: none; }
}
