/* Momentum Energy Services: shared styles.
   Page layout is written inline in the markup (generated by tools/build_site.py).
   This file holds what inline styles cannot do: the font, hover and focus states,
   breakpoints and the hero photo. */

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/Manrope-Variable.woff2") format("woff2");
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #061426; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
[id] { scroll-margin-top: 16px; }
:focus-visible { outline: 2px solid #82D3E5; outline-offset: 3px; }

/* Skip link: off screen until it takes keyboard focus */
.mes-skip {
  position: absolute; left: 16px; top: -72px; z-index: 10;
  padding: 12px 18px; border-radius: 999px;
  background: #FFFFFF; color: #0B1F3A;
  font: 600 15px/1.2 Manrope, system-ui, sans-serif;
  transition: top .15s ease;
}
.mes-skip:focus { top: 12px; }

/* Home hero: the dusk photo, zoomed so the tower sits between the headline and the bill card */
.mes-hero-photo {
  background-image: url("/assets/hero-dusk.jpg");
  background-image: image-set(url("/assets/hero-dusk.webp") type("image/webp"), url("/assets/hero-dusk.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 48% 42%;
  transform: scale(1.18);
  transform-origin: 0% 58%;
}
.mes-hero-shade {
  background-image:
    linear-gradient(90deg, rgba(6,20,38,0.86) 0%, rgba(6,20,38,0.58) 38%, rgba(6,20,38,0.06) 66%, rgba(6,20,38,0.3) 100%),
    linear-gradient(180deg, rgba(6,20,38,0.6) 0%, rgba(6,20,38,0) 24%, rgba(6,20,38,0) 72%, rgba(6,20,38,0.82) 100%);
}

/* Contact panel on the home page */
.mes-photo {
  background-color: #0B1F3A;
  background-image: linear-gradient(180deg, rgba(6,20,38,0.05) 0%, rgba(6,20,38,0.2) 45%, rgba(6,20,38,0.88) 100%), url("/assets/hero-dusk-1100.webp");
  background-size: cover;
  background-position: 52% 30%;
}

/* Call-to-action band on inner pages */
.mes-photo-wide {
  background-color: #0B1F3A;
  background-image: linear-gradient(90deg, rgba(6,20,38,0.92) 0%, rgba(6,20,38,0.7) 45%, rgba(6,20,38,0.35) 100%), url("/assets/hero-dusk.jpg");
  background-image: linear-gradient(90deg, rgba(6,20,38,0.92) 0%, rgba(6,20,38,0.7) 45%, rgba(6,20,38,0.35) 100%), image-set(url("/assets/hero-dusk.webp") type("image/webp"), url("/assets/hero-dusk.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 50% 62%;
}

/* Hover states */
.mes-solid:hover { filter: brightness(1.1); }
.mes-ghost:hover { background-color: rgba(255,255,255,0.12); }
.mes-ghost-ink:hover { background-color: #0B1F3A; color: #FFFFFF; }
.mes-nav:hover { opacity: 0.7; }
.mes-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.mes-card:hover { transform: translateY(-3px); border-color: #9FB7CC; box-shadow: 0 18px 40px rgba(11,31,58,0.12); }
.mes-row:hover { padding-left: 8px; }

/* Phones and small tablets */
@media (max-width: 900px) {
  .mes-wide { display: none !important; }
  .mes-hero-photo { transform: none; background-position: 53% 40%; background-image: url("/assets/hero-dusk-1100.webp"); }
  .mes-hero-shade { background-image: linear-gradient(180deg, rgba(6,20,38,0.82) 0%, rgba(6,20,38,0.62) 40%, rgba(6,20,38,0.72) 70%, rgba(6,20,38,0.9) 100%); }
  .mes-photo-wide { background-image: linear-gradient(90deg, rgba(6,20,38,0.92) 0%, rgba(6,20,38,0.7) 45%, rgba(6,20,38,0.35) 100%), url("/assets/hero-dusk-1100.webp"); }
  .mes-stat { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
  .mes-stat > span { flex: none !important; }
}

/* Small phones: a slimmer header button leaves room for the logo */
@media (max-width: 480px) {
  .mes-topcta { padding: 0 16px !important; font-size: 14px !important; }
}

/* Larger screens */
@media (min-width: 901px) {
  .mes-narrow { display: none !important; }
}

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