/*
Theme Name: ProHomeWiring
Theme URI: https://prohomewiring.com
Author: S&M Telecommunications LLC
Author URI: https://smtelecommunications.com/website-design
Description: Nationwide Electrician Theme
Version: 3.0
*/

/* =====================
   GLOBAL RESET & BASE
===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #f4f6f9;
  color: #222;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* =====================
   COLOR VARIABLES
===================== */
:root {
  --navy:        #0d2366;
  --navy-dark:   #081848;
  --navy-mid:    #162d6e;
  --orange:      #e8531a;
  --orange-dark: #c94210;
  --gold:        #f5a623;
  --white:       #ffffff;
  --light-gray:  #f0f2f7;
  --border:      #dce1ef;
}

/* =====================
   NAVIGATION
===================== */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 62px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.site-logo span { color: var(--gold); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
}

.main-nav ul li a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav ul li:last-child a { border-right: none; }
.main-nav ul li a:hover { color: var(--gold); }

.nav-cta-btn {
  background: var(--orange);
  color: var(--white) !important;
  border-radius: 4px;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  border-right: none !important;
  transition: background 0.2s !important;
  text-transform: uppercase;
}

.nav-cta-btn:hover { 
  background: var(--orange-dark) !important; 
  color: var(--white) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* =====================
   HERO SECTION
===================== */
.hero-section {
  background: url('https://prohomewiring.com/wp-content/themes/prohomewiring/assets/images/hero-background.png') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  padding: 60px 20px 40px;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 40px;
}

.hero-content { flex: 0 0 55%; }

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 0, 0, 0.8);
}

.hero-content h1 .highlight { color: var(--gold); }

.hero-subtitle {
  color: var(--white);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.95;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.95);
}

/* ZIP SEARCH BOX */
.zip-search-box {
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--orange);
  border-radius: 8px;
  padding: 18px 20px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  max-width: 520px;
}

.zip-search-box select,
.zip-search-box input[type="text"] {
  padding: 12px 16px;
  border-radius: 5px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  background: var(--white);
  color: #333;
  min-width: 160px;
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
}

.zip-search-box select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 36px;
  cursor: pointer;
}

.zip-search-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 5px;
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s;
  white-space: nowrap;
}

.zip-search-btn:hover { background: var(--orange); }

/* ZIP RESULT POPUP */
.zip-result-popup {
  display: none;
  background: var(--white);
  border: 3px solid var(--orange);
  border-radius: 10px;
  padding: 22px 28px;
  margin-top: 16px;
  max-width: 440px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.zip-result-popup p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
  font-weight: 600;
}

.zip-result-popup .popup-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

.popup-call-btn {
  display: block;
  background: var(--navy);
  color: var(--white) !important;
  text-align: center;
  padding: 16px;
  border-radius: 6px;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  transition: all 0.2s;
  width: 100%;
  border: 3px solid var(--orange);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.popup-call-btn:hover { 
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,83,26,0.4);
}

.zip-error {
  display: none;
  color: #ff4444;
  font-size: 0.85rem;
  margin-top: 8px;
  font-weight: 600;
}

/* HERO IMAGE (electrician) */
.hero-image-wrap {
  flex: 0 0 42%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-image-wrap img {
  max-height: 460px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
  object-fit: contain;
}

/* =====================
   TRUST BADGES
===================== */
.trust-bar {
  background: var(--light-gray);
  border-top: 3px solid var(--orange);
  border-bottom: 3px solid var(--border);
}

.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-right: 1px solid var(--border);
}

.trust-item:last-child { border-right: none; }

.trust-icon {
  font-size: 2.6rem;
  flex-shrink: 0;
}

.trust-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trust-text span {
  font-size: 0.85rem;
  color: #555;
}

/* =====================
   SERVICES SECTION
===================== */
.services-section {
  background: var(--white);
  padding: 70px 20px;
}

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-header h2 .gold { color: var(--gold); }
.section-header h2 .orange { color: var(--orange); }

.section-header p {
  color: #555;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(13,35,102,0.12);
  border-color: var(--orange);
}

.service-card .svc-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
}

/* =====================
   NATIONWIDE SECTION
===================== */
.nationwide-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 70px 20px;
  text-align: center;
}

.nationwide-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.nationwide-section h2 .gold { color: var(--gold); }

.nationwide-section .sub {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 48px;
}

.nationwide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto;
  gap: 2px;
}

.nation-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 36px 24px;
  text-align: center;
  transition: background 0.2s;
}

.nation-item:hover { background: rgba(255,255,255,0.13); }

.nation-item .n-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.nation-item p {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

/* =====================
   WHY CHOOSE US
===================== */
.why-section {
  background: var(--light-gray);
  padding: 70px 20px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 48px;
}

.why-card {
  background: var(--white);
  border-radius: 10px;
  border-left: 5px solid var(--orange);
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.why-card .w-icon { font-size: 2.2rem; margin-bottom: 12px; }
.why-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.why-card p { font-size: 0.87rem; color: #666; line-height: 1.5; }

/* =====================
   CTA BANNER
===================== */
.cta-section {
  background: var(--orange);
  padding: 56px 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.cta-section .cta-sub {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 20px;
}

.cta-phone-link {
  display: inline-block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 2px;
  background: var(--navy-dark);
  padding: 16px 48px;
  border-radius: 8px;
  transition: background 0.2s;
}

.cta-phone-link:hover { background: var(--navy); }

/* =====================
   FOOTER
===================== */
.site-footer {
  background: var(--navy-dark);
  padding: 50px 20px 24px;
  color: rgba(255,255,255,0.75);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand .logo span { color: var(--gold); }

.footer-brand p { font-size: 0.88rem; line-height: 1.6; margin-bottom: 16px; }

.footer-phone-cta {
  display: inline-block;
  background: var(--orange);
  color: var(--white) !important;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1rem;
  transition: background 0.2s;
}

.footer-phone-cta:hover { background: var(--orange-dark); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 24px 0;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--gold); }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; }
  .hero-content { flex: unset; width: 100%; text-align: center; }
  .hero-image-wrap { display: none; }
  .zip-search-box { justify-content: center; }
  .zip-result-popup { margin: 16px auto 0; }
  .trust-bar-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: none; }
  .nationwide-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open { 
    display: flex; 
    position: absolute; 
    top: 62px; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .main-nav.open ul li a { display: block; padding: 12px 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .zip-search-box { flex-direction: column; align-items: stretch; }
  .zip-search-box select,
  .zip-search-box input[type="text"] { min-width: unset; }
}