/* =========================================================
   Envolve Energy — Production CSS
   Final pass by Daryl Maksymec — Rayova.com — Nov 10, 2025
   Notes:
   - Footer rebuilt with semantic, consistent BEM-style classes
   - Finger-friendly footer links (>=44px)
   - A11y polish: skip link, focus-visible, reduced motion
   - Heading sizes explicitly defined to avoid UA defaults
   ========================================================= */

/* ===== Base / A11y ===== */
html, body {
  background: #202834;
  color: #fdfeff;
  margin: 0;
  font-family: 'Roboto', 'Helvetica Neue', Arial, system-ui, -apple-system, sans-serif;
  font-weight: 300;
}
*, *::before, *::after { box-sizing: border-box; }

img { max-width: 100%; height: auto; display: block; }

/* Visually-hidden helper */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Skip to content */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #0d6efd; color: #fff; padding: 8px 12px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; outline: none; }

/* Keyboard focus clarity */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(13,110,253,.65);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Headings (explicit sizes to avoid UA defaults) ===== */
:root{
  --h1-min: 2rem;    --h1-max: 3.25rem;
  --h2-min: 1.5rem;  --h2-max: 2rem;
  --h3-min: 1.25rem; --h3-max: 1.5rem;
}
h1{
  font-size: clamp(var(--h1-min), 5vw, var(--h1-max));
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}
h2{
  /* Section headings */
  font-size: clamp(var(--h2-min), 3.5vw, var(--h2-max));
  line-height: 1.2;
  margin: 0 0 .5em;
  text-transform: uppercase;
  color: #06C2F3;
  font-family: 'Ropa Sans', sans-serif;
  font-weight: 300;
  text-shadow: 1px 1px 2px #111;
}
h3{
  font-size: clamp(var(--h3-min), 3vw, var(--h3-max));
  line-height: 1.25;
  margin: 0 0 .5em;
}

/* ===== Layout / Containers ===== */
.container { width: min(1200px, 92vw); margin-inline: auto; padding: 1rem; }

.site-header {
  background: rgba(32,40,52,.83);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand-logo { max-height: 80px; }

/* ===== HERO: stacked wordmarks (guard against overflow) ===== */
.hero-graphics{
  --hero-max: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(.5rem, 2.5vw, 1rem);
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
  padding-inline: clamp(.5rem, 3vw, 1rem);
  max-width: min(var(--hero-max), 100%);
}
.hero-graphics .main-img{ max-width: 650px; height: auto; width: 100%; }
.hero-graphics .energy-services{ max-width: 550px; height: auto; width: 100%; }

/* Ultra-small devices: guarantee no horizontal scroll */
@media (max-width: 420px){
  .hero-graphics .main-img{ max-width: 92vw; }
  .hero-graphics .energy-services{ max-width: 82vw; }
}

/* Content bits */
.mission-list { margin: .5rem 0 1rem; padding-left: 1.2rem; }
.mission-list li { margin: .25rem 0; }

.phone {
  color: #06C2F3; font-size: 1.2rem; font-weight: 400;
  display: flex; align-items: center; gap: .5rem;
}
.phone i { font-size: 1rem; line-height: 1; }

/* CTA button */
.view-wait-times { padding: 1rem 0 2rem; }
.btn-wait-times{
  display:inline-block; padding:12px 18px; border-radius:6px;
  background:#0d6efd; color:#fff; text-decoration:none; font-weight:600; letter-spacing:.2px;
  transition:transform .08s ease, background .2s ease, box-shadow .2s ease;
}
.btn-wait-times:hover{ background:#0b5ed7; transform:translateY(-1px); }
.btn-wait-times:active{ transform:translateY(0); }
.btn-wait-times:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(13,110,253,.35); }

/* =========================================================
   FOOTER (semantic + consistent class names)
   .site-footer   : outer wrapper
   .footer        : grid container (uses .container width)
   .footer__contact, .footer__branding, .footer__nav, .footer__social
   ========================================================= */
.site-footer { background-color: #030612; color: #fff; }
.footer {
  padding: 40px 20px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr; /* mobile-first */
  align-items: center;
}

/* Column groups */
.footer__contact, .footer__branding, .footer__nav, .footer__social { display: grid; gap: 12px; }

/* Contact rows */
.footer__row {
  display: flex; align-items: center; gap: 12px;
}
.footer__row i {
  display: inline-flex; align-items: center; justify-content: center;
  background-color: #33383b; color: #ffffff;
  font-size: 20px; width: 36px; height: 36px; border-radius: 50%;
  text-align: center; line-height: 36px; flex: 0 0 36px;
}
.footer__row p { margin: 0; line-height: 1.4; }

/* Branding */
.footer__branding { text-align: center; }
.footer__brand-name { color: #06C2F3; font-weight: 700; }
.mullen-logo { display: inline-block; max-width: 240px; height: auto; }

/* Footer navigation */
.footer__nav { text-align: center; }
.footer__links {
  /* Finger-friendly spacing; no separators needed */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 3.5vw, 24px);
  margin: 12px 0;
  list-style: none;
  padding: 0;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;        /* finger target height */
  padding: 6px 10px;       /* finger target width */
  border-radius: 6px;      /* cleaner focus outline */
  color: inherit;
  text-decoration: none;
  border: 1px solid #8f9296;

}
.footer__links a:hover {
  border: 1px solid #06C2F3;
}
.footer__links a:focus-visible {
  outline: 3px solid rgba(13,110,253,.65);
  outline-offset: 2px;
}
.footer__copyright { color: #8f9296; font-size: 14px; margin: 0; width:100%; text-align: center }

/* Desktop grid */
@media (min-width: 900px) {
  .footer {
    /* 3 visible columns + 1 reserved social column */
    grid-template-columns: 30% 40% 30% 0%;
  }
  .footer__contact { text-align: left; }
  .footer__branding { text-align: center; }
  .footer__nav { text-align: right; }
}

/* Mobile polish: center contact rows; hide pin icon only (keep address text) */
@media (max-width: 899.98px) {
  .footer__contact { text-align: center; }
  .footer__contact .footer__row { justify-content: center; }
  .footer__row.address .fa-location-dot { display: none !important; }
}

/* Links */
.map-link { color: #06C2F3; text-decoration: none; }
.phone-link { color: inherit; text-decoration: none; }
.phone-link:hover, .map-link:hover { text-decoration: underline; }
