/* ============================================================
   Next Electric Pro (DBA of Raymond D. Melanson Electric & Safety Corp.)
   Palette: graphite / electric teal / coral (current & energy identity)
   Fonts: Space Grotesk (headings, technical geometric) + Work Sans (body)
   ============================================================ */

:root {
  --graphite: #1c2228;
  --graphite-deep: #12171c;
  --slate: #5b6774;
  --slate-light: #eef2f3;
  --teal: #00b3ad;
  --teal-deep: #00847f;
  --coral: #ff6a45;
  --coral-deep: #e04f2b;
  --off-white: #f6f7f6;
  --ink: #171b1f;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.65;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Space Grotesk', 'Work Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-deep);
}

a { text-decoration: none; }

.btn-coral {
  background: var(--coral);
  border: 2px solid var(--coral);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  transition: all 0.2s ease;
  display: inline-block;
}
.btn-coral:hover { background: var(--coral-deep); border-color: var(--coral-deep); color: #fff; }

.btn-outline-light-custom {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.85);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  transition: all 0.2s ease;
  display: inline-block;
  cursor: pointer;
}
.btn-outline-light-custom:hover { background: rgba(255,255,255,0.14); color: #fff; }

.btn-teal-outline {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal-deep);
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  transition: all 0.2s ease;
  display: inline-block;
  cursor: pointer;
}
.btn-teal-outline:hover { background: var(--teal); color: #fff; }

/* HouseCallPro widget button reset */
button.hcp-button {
  font: inherit;
  cursor: pointer;
}

/* ---------- Navbar ---------- */
.navbar-wfw {
  background: var(--graphite-deep);
  padding: 0.55rem 0;
  box-shadow: 0 2px 14px rgba(0,0,0,0.3);
}

.navbar-wfw .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-chip {
  background: #fdfdfd;
  border-radius: 6px;
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo-chip img { height: 38px; width: auto; display: block; }

.brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand-text small {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 0.66rem;
  color: var(--teal);
}

.navbar-wfw .nav-link {
  color: #dbe2e6 !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.65rem !important;
  white-space: nowrap;
}
.navbar-wfw .nav-link:hover { color: var(--teal) !important; }

.nav-call-btn {
  background: var(--coral);
  color: #fff !important;
  border-radius: 3px;
  padding: 0.5rem 0.9rem !important;
  margin-left: 0.3rem;
  white-space: nowrap;
}
.nav-call-btn:hover { background: var(--coral-deep); color: #fff !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('img/hero.webp') center/cover no-repeat;
  padding-top: 90px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 48%, rgba(18,23,28,0.45) 0%, rgba(18,23,28,0.08) 100%),
              linear-gradient(to bottom, rgba(18,23,28,0.35) 0%, rgba(18,23,28,0.12) 45%, rgba(18,23,28,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 2.5rem 2rem;
  margin: 0 1rem;
  background: rgba(18,23,28,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 10px;
}

.hero-eyebrow {
  color: var(--teal);
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}

.hero-title {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5.6vw, 3.9rem);
  line-height: 1.08;
  margin: 0.6rem 0 1rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}

.hero-subtitle {
  color: #f1f4f8;
  font-size: 1.12rem;
  font-weight: 400;
  max-width: 580px;
  margin: 0 auto 1.75rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}

.hero-tagline {
  color: var(--teal);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
  font-size: 0.92rem;
  margin-top: 1.5rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.9);
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Section basics ---------- */
section { padding: 5.5rem 0; }
.section-graphite { background: var(--graphite); color: #fff; }
.section-slate { background: var(--slate-light); }

.section-heading { margin-bottom: 3rem; }
.section-heading h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0.35rem 0 0;
}
.section-graphite .eyebrow { color: var(--teal); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--graphite-deep); color: #fff; }
.trust-cell {
  text-align: center;
  padding: 1.25rem 1rem;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.trust-cell:first-child { border-left: none; }
.trust-cell i { font-size: 1.8rem; color: var(--teal); margin-bottom: 0.5rem; display: block; }
.trust-cell .trust-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; }
.trust-cell .trust-label { font-size: 0.76rem; letter-spacing: 0.04em; color: #b7c1c8; text-transform: uppercase; }

/* ---------- Services ---------- */
.service-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 6px 20px rgba(18,23,28,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18,23,28,0.14); }
.service-photo { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-icon-badge {
  position: absolute;
  bottom: -26px;
  left: 1.75rem;
  width: 56px; height: 56px;
  background: var(--teal);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 11px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
.service-icon-badge img { width: 100%; height: 100%; object-fit: contain; }
.service-body { padding: 2.25rem 1.75rem 1.75rem; }
.service-body h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.service-body .service-lead { font-size: 0.92rem; color: var(--slate); margin-bottom: 1rem; }
.service-body ul { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--slate); }
.service-body ul li { padding: 0.35rem 0; border-bottom: 1px dashed #e3e7ea; }
.service-body ul li:last-child { border-bottom: none; }
.service-body ul li strong { color: var(--ink); }
.service-body ul li::before { content: "\2022"; color: var(--coral); font-weight: 700; margin-right: 0.5rem; }

/* ---------- About ---------- */
.about-photo {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(18,23,28,0.18);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.credential-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.credential-cell {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(18,23,28,0.06);
}
.credential-cell i { font-size: 1.5rem; color: var(--teal-deep); margin-bottom: 0.6rem; display: block; }
.credential-cell h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.credential-cell p { font-size: 0.87rem; color: var(--slate); margin: 0; }

.legacy-panel {
  background: var(--graphite);
  color: #fff;
  border-radius: 10px;
  padding: 2.25rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.legacy-panel img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--teal); }
.legacy-panel p { color: #cdd5da; font-size: 0.92rem; margin: 0; }
.legacy-panel h4 { color: var(--teal); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }

/* ---------- Lavallee partnership ---------- */
.lavallee-photo {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(18,23,28,0.18);
}
.lavallee-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.partner-point { display: flex; gap: 0.9rem; margin-bottom: 1.1rem; }
.partner-point i { color: var(--coral); font-size: 1.2rem; margin-top: 0.15rem; flex-shrink: 0; }
.partner-point strong { display: block; font-size: 0.95rem; }
.partner-point span { font-size: 0.88rem; color: var(--slate); }

/* ---------- Community stat row ---------- */
.community-stat {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(18,23,28,0.06);
  height: 100%;
}
.community-stat .num { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--coral-deep); }
.community-stat .label { font-size: 0.85rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Ideas grid ---------- */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.idea-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 6px 16px rgba(18,23,28,0.06);
  transition: transform 0.2s ease;
}
.idea-card:hover { transform: translateY(-3px); }
.idea-card i { font-size: 1.6rem; color: var(--teal-deep); margin-bottom: 0.7rem; display: block; }
.idea-card span { font-size: 0.88rem; font-weight: 500; color: var(--ink); }

/* ---------- Reviews ---------- */
.review-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  box-shadow: 0 6px 18px rgba(18,23,28,0.07);
}
.review-card i.bi-quote { color: var(--teal); font-size: 1.5rem; }
.review-card p.quote-text { font-style: italic; color: var(--ink); font-size: 0.92rem; margin: 0.7rem 0 1rem; }
.review-card .quote-author { font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--slate); }
.review-card .quote-stars { color: var(--coral); font-size: 0.8rem; margin-bottom: 0.3rem; }

.review-cta {
  background: linear-gradient(135deg, var(--graphite) 0%, var(--graphite-deep) 100%);
  color: #fff;
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.review-cta i { color: var(--teal); font-size: 1.7rem; margin-bottom: 0.6rem; }
.review-cta h4 { font-size: 1rem; margin-bottom: 0.9rem; }

/* ---------- Service area pills ---------- */
.town-pill {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #e4e9eb;
  font-size: 0.82rem;
  padding: 0.4rem 0.95rem;
  border-radius: 30px;
  margin: 0.25rem;
}
.state-label {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--teal);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2rem 0 1rem;
}
.state-label:first-of-type { margin-top: 0; }

/* ---------- Contact / Location ---------- */
.contact-card {
  background: #fff;
  border-radius: 8px;
  padding: 2.25rem;
  box-shadow: 0 10px 26px rgba(18,23,28,0.08);
  height: 100%;
}
.contact-card .contact-row { display: flex; gap: 1rem; margin-bottom: 1.3rem; }
.contact-card .contact-row i { color: var(--teal-deep); font-size: 1.25rem; width: 26px; flex-shrink: 0; }
.contact-card .contact-row strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 0.92rem; }
.contact-card .contact-row a { color: var(--ink); }
.contact-card .contact-row a:hover { color: var(--teal-deep); }

.map-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(18,23,28,0.08);
  height: 100%;
  min-height: 340px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.partners-note {
  background: var(--slate-light);
  border-left: 3px solid var(--coral);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--slate);
}
.partners-note strong { color: var(--ink); }

.office-pup {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.office-pup img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal); }
.office-pup span { font-size: 0.85rem; color: var(--slate); font-style: italic; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--graphite-deep);
  color: #b7c1c8;
  padding: 3.5rem 0 1.5rem;
}
footer.site-footer .footer-logo-chip {
  background: #fdfdfd;
  border-radius: 6px;
  display: inline-flex;
  padding: 8px 12px;
  margin-bottom: 1rem;
}
footer.site-footer .footer-logo-chip img { height: 42px; width: auto; display: block; }
footer.site-footer h5 {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
footer.site-footer a.footer-link { color: #b7c1c8; display: block; margin-bottom: 0.55rem; font-size: 0.9rem; }
footer.site-footer a.footer-link:hover { color: var(--teal); }
footer.site-footer .license-line { font-size: 0.8rem; color: #7c8790; }
footer.site-footer .social-row { display: flex; gap: 0.7rem; margin-top: 0.6rem; }
footer.site-footer .social-row a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
}
footer.site-footer .social-row a:hover { background: var(--teal); }
footer.site-footer .powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,179,173,0.12);
  border: 1px solid rgba(0,179,173,0.4);
  color: var(--teal);
  padding: 0.55rem 1.1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 1rem;
}
footer.site-footer .powered-by:hover { background: rgba(0,179,173,0.22); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #7c8790;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  section { padding: 3.75rem 0; }
  .trust-cell { border-left: none; border-top: 1px solid rgba(255,255,255,0.12); padding: 1.5rem 1rem; }
  .trust-cell:first-child { border-top: none; }
  .hero-content { padding: 1.75rem 1.25rem; }
  .credential-grid { grid-template-columns: 1fr; }
  .legacy-panel { flex-direction: column; text-align: center; }
  .office-pup { flex-direction: column; text-align: center; }
  .idea-grid { grid-template-columns: repeat(2, 1fr); }
}
