/* ============================================
   SUMMIT ELECTRICAL — GLOBAL STYLES
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:        #003D82;
  --navy-dark:   #002952;
  --navy-deeper: #001a38;
  --gold:        #FFB81C;
  --gold-dark:   #e6a518;
  --red:         #DC143C;
  --red-dark:    #B8102E;
  --green:       #28A745;
  --gray-900:    #1a1a1a;
  --gray-700:    #4a4a4a;
  --gray-500:    #666666;
  --gray-300:    #cccccc;
  --gray-100:    #f8f9fa;
  --white:       #ffffff;
  --font-display:'Barlow Condensed', sans-serif;
  --font-body:   'Barlow', sans-serif;
  --transition:  250ms ease;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-full: 9999px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--gray-900); background: var(--white); overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* SCROLL ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   DEMO LABEL BAR  — sits above everything
   ============================================ */
#demo-bar {
  background: var(--navy-deeper);
  border-bottom: 2px solid var(--gold);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 500;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1003;
  line-height: 1.4;
}
#demo-bar strong { color: var(--gold); font-weight: 700; }
#demo-bar a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 8px;
}
#demo-bar a:hover { opacity: 0.8; }

/* ============================================
   EMERGENCY STRIP
   ============================================ */
#emergency-strip {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: fixed;
  top: 36px; left: 0; right: 0;
  z-index: 1002;
  line-height: 1.4;
}
#emergency-strip a { color: var(--white); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
#emergency-strip a:hover { opacity: 0.85; }

/* ============================================
   HEADER & NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon  { width: 40px; height: 40px; background: var(--navy); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon svg { width: 22px; height: 22px; fill: var(--gold); }
.logo-text  { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name  { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: 0.02em; }
.logo-tagline { font-size: 10px; font-weight: 500; color: var(--gray-500); letter-spacing: 0.05em; text-transform: uppercase; }

.main-nav   { display: flex; align-items: center; gap: 4px; }
.nav-list   { display: flex; align-items: center; gap: 2px; }
.nav-item   { position: relative; }

.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 12px;
  font-size: 14px; font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap; cursor: pointer;
}
.nav-link:hover       { color: var(--navy); background: var(--gray-100); }
.nav-link.active-page { color: var(--navy); font-weight: 700; }

.nav-arrow { font-size: 9px; transition: transform var(--transition); color: var(--gray-500); }
.nav-item:hover .nav-arrow,
.nav-item.active  .nav-arrow { transform: rotate(180deg); color: var(--navy); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all 200ms ease;
  pointer-events: none;
}
.nav-item:hover .nav-dropdown,
.nav-item.active .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: all; }

.nav-dropdown a { display: block; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--gray-700); border-radius: var(--radius-sm); transition: all 150ms ease; }
.nav-dropdown a:hover { background: var(--gray-100); color: var(--navy); padding-left: 18px; }
.dropdown-label { padding: 8px 14px 4px; font-size: 11px; font-weight: 700; color: var(--gray-300); letter-spacing: 0.08em; text-transform: uppercase; }

.header-cta {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--red); color: var(--white);
  font-weight: 700; font-size: 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(220,20,60,0.3);
  transition: all var(--transition);
  white-space: nowrap;
  animation: headerPulse 4s infinite;
}
.header-cta:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,20,60,0.45); animation: none; }
@keyframes headerPulse {
  0%,90%,100% { transform:scale(1); box-shadow:0 4px 12px rgba(220,20,60,0.3); }
  95%          { transform:scale(1.03); box-shadow:0 6px 20px rgba(220,20,60,0.45); }
}

.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: var(--radius-sm); }
.mobile-toggle span { display: block; width: 24px; height: 2.5px; background: var(--gray-900); border-radius: 2px; transition: all var(--transition); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  cursor: pointer; border: 2px solid transparent; white-space: nowrap;
}
.btn-primary   { background: var(--red); color: var(--white); box-shadow: 0 4px 16px rgba(220,20,60,0.3); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,20,60,0.45); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-secondary:hover { background: var(--white); color: var(--navy); }
.btn-navy      { background: var(--navy); color: var(--white); box-shadow: 0 4px 16px rgba(0,61,130,0.25); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,61,130,0.35); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-lg    { padding: 18px 40px; font-size: 18px; }
.btn-block { width: 100%; justify-content: center; }
.btn-pulse { animation: ctaPulse 4s infinite; }
@keyframes ctaPulse {
  0%,88%,100% { box-shadow: 0 4px 16px rgba(220,20,60,0.3); }
  94%          { box-shadow: 0 8px 32px rgba(220,20,60,0.6); transform: scale(1.02); }
}
.btn-pulse:hover { animation: none; }

/* ============================================
   FLOATING CALL BUTTON
   ============================================ */
.floating-call {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 60px; height: 60px; background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(220,20,60,0.5); color: var(--white); font-size: 24px;
  opacity: 0; transform: translateY(80px); transition: transform var(--transition); pointer-events: none;
}
.floating-call.show { pointer-events: all; animation: floatEnter 0.5s ease forwards, floatPulse 2s 0.5s infinite; }
@keyframes floatEnter { to { opacity:1; transform:translateY(0); } }
@keyframes floatPulse  { 0%,100%{box-shadow:0 4px 24px rgba(220,20,60,0.5);} 50%{box-shadow:0 8px 36px rgba(220,20,60,0.7);transform:scale(1.06);} }
.floating-call:hover { transform: scale(1.1) !important; animation: none !important; }

/* ============================================
   SECTION HEADER SHARED
   ============================================ */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red); font-size: 12px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px;
}
.section-tag::before, .section-tag::after { content: ''; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.section-tag.tag-navy { color: var(--navy); }
.section-headline { font-family: var(--font-display); font-size: clamp(28px,4vw,46px); font-weight: 800; color: var(--gray-900); line-height: 1.1; letter-spacing: 0.01em; margin-bottom: 16px; }
.section-headline .num { color: var(--gold); font-size: 1.15em; font-weight: 900; }
.section-sub { font-size: 17px; line-height: 1.7; color: var(--gray-500); }

/* ============================================
   FOOTER — single consolidated section
   ============================================ */
.site-footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 56px 0 0;
}

.footer-top-strip {
  background: var(--red);
  text-align: center;
  padding: 13px 24px;
  font-size: 14px; font-weight: 600;
  margin-bottom: 48px;
}
.footer-top-strip a { color: var(--white); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.footer-top-strip a:hover { opacity: 0.85; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr 1.3fr 1.1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; text-decoration: none; }
.footer-logo-icon  { width: 34px; height: 34px; background: var(--gold); border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.footer-logo-icon svg { width: 18px; height: 18px; fill: var(--navy); }
.footer-logo-name { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--white); }
.footer-tagline { font-size: 13px; line-height: 1.7; color: var(--gray-300); margin-bottom: 16px; }
.footer-contact-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--gray-300); margin-bottom: 8px; line-height: 1.5; }
.footer-contact-row .fc-icon { color: var(--gold); font-size: 13px; margin-top: 1px; flex-shrink: 0; }
.footer-contact-row a { color: var(--gray-300); transition: color 150ms ease; }
.footer-contact-row a:hover { color: var(--gold); }

.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { font-size: 13px; color: var(--gray-300); transition: all 150ms ease; display: inline-block; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }

/* FOOTER BOTTOM — reviews + social + copyright all in one row */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0 24px;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-badges {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.footer-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; font-weight: 500; color: var(--gray-300);
  transition: all var(--transition);
  /* =====================================================
     TO UPDATE: Replace # with the client's review URL
     Example: href="https://g.page/r/CLIENT_GOOGLE_ID/review"
     ===================================================== */
}
.footer-badge:hover { background: rgba(255,184,28,0.15); border-color: rgba(255,184,28,0.3); color: var(--gold); }

.footer-social {
  display: flex; align-items: center; gap: 8px;
}
.social-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--white);
  transition: all var(--transition);
  text-decoration: none;
  /* =====================================================
     TO UPDATE: Replace # with the client's social URL
     Example: href="https://facebook.com/clientpage"
     ===================================================== */
}
.social-icon:hover { transform: translateY(-2px) scale(1.1); }
.social-fb { background: #1877F2; }
.social-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-yt { background: #FF0000; }
.social-li { background: #0077B5; }

.footer-copyright {
  font-size: 12px; color: rgba(255,255,255,0.3);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-copyright a { color: rgba(255,255,255,0.3); transition: color 150ms ease; }
.footer-copyright a:hover { color: var(--gold); }

/* ============================================
   RESPONSIVE GLOBAL
   ============================================ */
@media (max-width: 1024px) {
  .mobile-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 130px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column; align-items: stretch;
    padding: 20px; overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 300ms ease;
    box-shadow: var(--shadow-lg); z-index: 999;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list  { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-link  { justify-content: space-between; padding: 14px 16px; font-size: 16px; }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; max-height: 0; overflow: hidden; box-shadow: none; padding: 0; margin: 0; border: none; transition: max-height 300ms ease; }
  .nav-item.active .nav-dropdown { max-height: 1000px; padding: 4px 0 8px 16px; }
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 768px) {
  #emergency-strip { font-size: 12px; padding: 9px 16px; top: 34px; }
  #demo-bar { font-size: 11px; padding: 7px 16px; }
  .site-header { top: 76px; }
  .main-nav    { top: 126px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { gap: 12px; }
  .footer-badges { gap: 6px; }
  .floating-call { display: flex; }
}

@media (min-width: 1025px) {
  .floating-call { display: none !important; }
}
