/* ══ PROCTOR ELECTRIC — SHARED STYLES ══
   Single source of truth for nav, mega menu, footer, design tokens,
   and common page patterns. Every page loads this + page-specific styles only. */

/* ── DESIGN SYSTEM ── */
:root {
  --navy: #0b0d1e;
  --navy-light: #111328;
  --barely-there: #0e1024;
  --cyan: #00cfff;
  --cyan-dark: #0088aa;
  --violet: #6c3aff;
  --pink: #ff2d8a;
  --white: #fafcff;
  --gray-50: #f6f8fa;
  --gray-100: #eef1f5;
  --gray-200: #dde2e8;
  --gray-400: #8a9bb0;
  --gray-500: #6a7a8a;
  --gray-600: #555;
  --gray-700: #444;
  --gray-800: #333;
  --text: #1a1a1a;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-glow: 0 4px 20px rgba(0,207,255,0.15);
  --max-w: 1200px;
  --gutter: 24px;
  --section-py: clamp(64px, 8vw, 96px);
}

/* ── RESETS ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a, button, .service-card, .review-card, .nd-badge, .badge {
  transition: all 0.25s var(--ease);
}

/* ── SKIP LINK ── */
.skip-link:focus { top: 0 !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── NAV ── */
nav[role="navigation"] {
  position: fixed;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  max-width: 1184px;
  z-index: 100;
  background: rgba(11,13,30,0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
nav[role="navigation"].scrolled {
  background: rgba(11,13,30,0.97);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.08);
}
.nav-inner {
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid rgba(0,207,255,0.35);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,207,255,0.25);
}
.nav-cta svg { transition: transform 0.25s var(--ease); }
.nav-cta:hover svg { transform: translateX(3px); }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transform: skewX(-8deg);
}
.nav-logo .logo-proctor { color: var(--cyan); }
.nav-logo .logo-electric { color: #fff; }
.nav-logo-bolt { width: 20px; height: 20px; flex-shrink: 0; margin-left: -6px; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.1px;
  position: relative;
  display: flex;
  align-items: center;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--cyan);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-phone {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.5px;
}
.nav-phone:hover { text-shadow: 0 0 12px rgba(0,207,255,0.4); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #fafcff; transition: all 0.3s var(--ease); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  background: rgba(11,13,30,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: none;
  padding: 4px 20px 20px;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: 48px;
  left: 6px; right: 6px;
  border-radius: 0 0 12px 12px;
  z-index: 99;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.mobile-menu.open { display: flex; }
.mobile-menu > a,
.mobile-menu > .mm-group > .mm-toggle {
  font-size: 15px;
  font-weight: 500;
  color: #ccc;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu > a:hover,
.mobile-menu > .mm-group > .mm-toggle:hover { color: var(--cyan); }
.mobile-menu > a:last-child,
.mobile-menu > .mm-group:last-child .mm-toggle { border: none; }
.mm-toggle { background: none; border: none; cursor: pointer; width: 100%; text-align: left; font-family: inherit; }
.mm-toggle svg { width: 16px; height: 16px; stroke: #888; transition: transform 0.2s ease; flex-shrink: 0; }
.mm-group.open .mm-toggle svg { transform: rotate(180deg); }
.mm-group.open .mm-toggle { color: var(--cyan); }
.mm-sub {
  display: none;
  flex-direction: column;
  padding: 4px 0 8px 16px;
  gap: 0;
}
.mm-group.open .mm-sub { display: flex; }
.mm-sub-label {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 0 4px;
}
.mm-sub a {
  font-size: 14px;
  color: #999;
  padding: 8px 0;
  text-decoration: none;
  display: block;
}
.mm-sub a:hover { color: var(--cyan); }
.mm-cta {
  display: block;
  background: var(--cyan);
  color: var(--navy) !important;
  text-align: center;
  padding: 12px 16px !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 12px;
  border: none !important;
}
.mm-phone {
  color: var(--cyan) !important;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
}

/* ── MEGA MENU ── */
.nav-links .has-mega { cursor: default; }
.nav-links .has-mega > a { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-links .has-mega > a .chevron { width: 10px; height: 10px; transition: transform 0.2s var(--ease); }
.nav-links .has-mega.active > a .chevron { transform: rotate(180deg); }
.nav-links .has-mega > a::after { display: none; }

.mega-wrap {
  position: fixed;
  top: 56px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  z-index: 98;
  pointer-events: none;
}
.mega-container {
  position: relative;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  visibility: hidden;
}
.mega-container.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.mega-arrow { display: none; }
.mega-body {
  background: rgba(17,19,40,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,207,255,0.12);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.mega-panel {
  display: none;
  padding: 28px 32px;
  gap: 0;
}
.mega-panel.active { display: grid; }
.mega-panel--residential { grid-template-columns: repeat(3, 220px); }
.mega-panel--commercial { grid-template-columns: repeat(2, 240px); }
.mega-panel--areas { grid-template-columns: repeat(2, 220px); }
.mega-panel--about { grid-template-columns: 280px; }
.mega-areas { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 12px; padding-top: 12px; }
.mega-area-tag { font-size: 12px; color: var(--cyan); text-decoration: none; padding: 3px 8px; background: rgba(0,207,255,0.08); border-radius: 4px; transition: background 0.15s; }
.mega-area-tag:hover { background: rgba(0,207,255,0.18); }

.mega-col { padding: 0 12px; }
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child { padding-right: 0; }
.mega-col + .mega-col { border-left: 1px solid rgba(255,255,255,0.04); padding-left: 20px; }
.mega-col-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 14px;
  padding-left: 0;
}
.mega-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s var(--ease);
}
.mega-link:hover { background: rgba(0,207,255,0.04); margin: 0 -8px; padding: 7px 8px; }
.mega-link-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,207,255,0.06);
  border-radius: 8px;
  flex-shrink: 0;
}
.mega-link-icon svg { width: 16px; height: 16px; stroke: var(--cyan); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mega-link-text { display: flex; flex-direction: column; }
.mega-link-title { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.mega-link-desc { font-size: 11.5px; color: var(--gray-500); line-height: 1.3; margin-top: 1px; }

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--barely-there); padding: 14px var(--gutter); border-bottom: 1px solid rgba(255,255,255,0.06); }
.breadcrumb-inner { max-width: var(--max-w); margin: 0 auto; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--gray-400); }
.breadcrumb li::after { content: '\203A'; margin-left: 6px; color: var(--gray-400); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li:last-child { color: #fff; font-weight: 500; }
.breadcrumb a { color: var(--cyan); }
.breadcrumb a:hover { color: #fff; }

/* ── COMMON PAGE ELEMENTS ── */
.page-header { background: var(--navy); padding: 120px var(--gutter) var(--section-py); position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 20% 80%, rgba(108,58,255,0.1) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0,207,255,0.06) 0%, transparent 60%); pointer-events: none; }
.page-header-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.section-label { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cyan-dark); display: inline-block; margin-bottom: 12px; }
.page-header .section-label { color: var(--cyan); }
.cta-bar .section-label { color: var(--cyan); }
.page-header h1 { font-family: 'Oswald', sans-serif; font-size: clamp(42px, 5vw, 64px); font-weight: 700; line-height: 1; text-transform: uppercase; color: #fff; margin-bottom: 20px; letter-spacing: 0.5px; }
.page-header h1 em { color: var(--cyan); font-style: normal; display: block; }
.page-header-sub { font-size: 17px; color: var(--gray-400); line-height: 1.75; max-width: 580px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gray-400); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 6px 14px; }
.badge svg { stroke: var(--cyan); fill: none; flex-shrink: 0; }

.hero-separator { height: 3px; background: linear-gradient(90deg, transparent 0%, var(--violet) 20%, var(--pink) 40%, var(--cyan) 60%, var(--pink) 80%, transparent 100%); background-size: 200% 100%; animation: separatorFlow 4s linear infinite; }
@keyframes separatorFlow { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

.section { padding: var(--section-py) var(--gutter); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-alt { background: var(--gray-50); }
.dark-section { background: var(--navy); }
h2 { font-family: 'Oswald', sans-serif; font-size: clamp(28px, 4vw, 44px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1; color: var(--text); }
.dark-section h2 { color: #fff; }

/* ── CTA BAR ── */
.cta-bar { background: var(--navy); padding: var(--section-py) var(--gutter); position: relative; overflow: hidden; }
.cta-bar::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(0,207,255,0.06) 0%, transparent 60%); pointer-events: none; }
.cta-bar-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-bar h2 { font-family: 'Oswald', sans-serif; font-size: clamp(32px, 4vw, 48px); font-weight: 700; text-transform: uppercase; color: #fff; line-height: 1; margin-bottom: 12px; }
.cta-bar h2 em { color: var(--cyan); font-style: normal; }
.cta-bar p { font-size: 15px; color: var(--gray-400); max-width: 380px; line-height: 1.75; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff; font-size: 14px; font-weight: 600; padding: 14px 28px; letter-spacing: 0.3px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); white-space: nowrap; flex-shrink: 0; }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(0,207,255,0.4); color: var(--cyan); transform: translateY(-1px); }
.btn-outline svg { transition: transform 0.25s var(--ease); }
.btn-outline:hover svg { transform: translateX(3px); }

/* ── FOOTER ── */
footer {
  background: #080a16;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px 0 28px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
  transform: skewX(-8deg);
}
.footer-brand-name .logo-proctor { color: var(--cyan); }
.footer-brand-name .logo-electric { color: #fff; }
.footer-brand-name img { width: 20px; height: 20px; flex-shrink: 0; }
.footer-brand p { font-size: 13px; color: var(--gray-600); line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li { font-size: 13px; color: var(--gray-600); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 13px; color: var(--gray-600); }
.footer-bottom a { color: var(--cyan); }

/* ── STICKY MOBILE CTA ── */
.sticky-cta-mobile { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  nav[role="navigation"] { top: 4px; width: calc(100% - 12px); max-width: none; border-radius: 10px; }
  .nav-inner { height: 40px; padding: 0 10px; }
  .nav-logo { font-size: 14px; gap: 6px; letter-spacing: 1px; }
  .nav-logo-bolt { width: 20px; height: 20px; }
  .hamburger span { width: 20px; }
  .mega-wrap { display: none; }
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
  .desktop-br { display: none; }
  .section { padding-left: 20px; padding-right: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-bar-inner { flex-direction: column; align-items: flex-start; }
  h2 { font-size: clamp(24px, 7vw, 36px); line-height: 1.1; }
  .hero-badges { flex-wrap: wrap; gap: 6px; margin-top: 24px; justify-content: center; }
  .badge { font-size: 11px; padding: 4px 8px; }
  .sticky-cta-mobile {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: rgba(11,13,30,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,207,255,0.15);
  }
  .sticky-cta-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--cyan);
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 8px;
    letter-spacing: 0.3px;
  }
  body { padding-bottom: 72px; }
}
@media (max-width: 480px) {
  .hero-badges { flex-direction: column; }
}
