/* ============================================================
   Custom Electrician's — Global Stylesheet
   Domain: customelectricc.info
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- CSS Variables --- */
:root {
  --navy: #0d1b2a;
  --yellow: #FFB300;
  --yellow-dark: #e6a000;
  --blue: #1565C0;
  --blue-light: #1976D2;
  --white: #ffffff;
  --gray-light: #f4f6f9;
  --gray: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --radius: 8px;
  --max-w: 1180px;
}

/* --- Utility --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--gray { background: var(--gray-light); }
.section--dark { background: var(--navy); color: var(--white); }
.section--yellow { background: var(--yellow); }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.fw-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); }
p { margin-bottom: 1em; color: #374151; }
p:last-child { margin-bottom: 0; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255,179,0,0.12);
  padding: 4px 14px;
  border-radius: 40px;
  margin-bottom: 16px;
}
.section--dark .section-label { background: rgba(255,179,0,0.20); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,179,0,0.35); }
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: #162236; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-lg { font-size: 1.15rem; padding: 18px 38px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* --- Top Bar --- */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 3px solid var(--yellow);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--yellow); font-weight: 700; }
.topbar a:hover { text-decoration: underline; }

/* --- Header / Nav --- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
  flex-wrap: wrap;
}
.nav__logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.nav__logo span { color: var(--yellow); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s;
  position: relative;
}
.nav__links a:hover, .nav__links a.active { color: var(--blue); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width 0.2s;
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__phone {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__phone:hover { color: var(--blue); }

/* Dropdown */
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 230px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all 0.22s ease;
  z-index: 200;
  border-top: 3px solid var(--yellow);
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav__dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--navy);
  transition: background 0.15s, color 0.15s;
}
.nav__dropdown a:hover { background: var(--gray-light); color: var(--blue); }

/* Mobile burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 60%, #0d2a4a 100%);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFB300' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,179,0,0.15);
  border: 1px solid rgba(255,179,0,0.3);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.hero__badge::before { content: '⚡'; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--yellow); }
.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 620px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}
.hero__trust-item::before { content: '✓'; color: var(--yellow); font-weight: 700; font-size: 1rem; }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--yellow);
  padding: 18px 0;
}
.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}
.trust-bar__icon { font-size: 1.1rem; }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border-top: 4px solid var(--yellow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.service-card__icon { font-size: 2.4rem; margin-bottom: 16px; }
.service-card h3 { color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 0.93rem; color: var(--gray); }
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 16px;
  transition: gap 0.2s;
}
.service-card__link:hover { gap: 8px; }

/* --- Why Choose Us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}
.why-card__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 8px;
}
.why-card h3 { color: var(--white); margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* --- Locations Grid --- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.location-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 24px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  border-left: 5px solid var(--yellow);
  transition: transform 0.22s;
}
.location-card:hover { transform: translateY(-4px); }
.location-card__city { font-size: 0.8rem; font-weight: 700; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.location-card h3 { color: var(--navy); margin-bottom: 10px; }
.location-card__addr { font-size: 0.88rem; color: var(--gray); margin-bottom: 14px; }
.location-card__phone { font-size: 1.05rem; font-weight: 700; color: var(--blue); display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.location-card a.btn { font-size: 0.9rem; padding: 10px 20px; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(90deg, var(--navy) 0%, #1a3a5c 100%);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '⚡';
  position: absolute;
  font-size: 200px;
  opacity: 0.04;
  right: 40px;
  top: -30px;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin-bottom: 32px; }
.cta-banner__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-banner__phones { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-top: 24px; }
.cta-banner__phone-item { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.cta-banner__phone-item strong { display: block; color: var(--yellow); font-size: 1.05rem; }

/* --- FAQ Accordion --- */
.faq-list { margin-top: 48px; max-width: 840px; margin-left: auto; margin-right: auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  user-select: none;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--gray-light); }
.faq-toggle {
  width: 28px; height: 28px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
}
.faq-answer-inner { padding: 0 24px 20px; color: var(--gray); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 400px; }

/* --- Map Embed --- */
.map-embed {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 40px;
}
.map-embed iframe { display: block; width: 100%; border: none; }

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--gray-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray);
}
.breadcrumb__list li::after { content: '›'; margin-left: 6px; }
.breadcrumb__list li:last-child::after { content: ''; }
.breadcrumb__list a { color: var(--blue); }
.breadcrumb__list a:hover { text-decoration: underline; }
.breadcrumb__list li:last-child { color: var(--navy); font-weight: 600; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  color: var(--white);
  padding: 60px 0 70px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 640px; margin: 0 auto 28px; }

/* --- Citation Links --- */
.citation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.citation-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.citation-link:hover { border-color: var(--yellow); background: #fffbf0; }

/* --- NAP Box --- */
.nap-box {
  background: var(--gray-light);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.nap-box__item h4 { color: var(--yellow-dark); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.nap-box__item p { color: var(--navy); font-weight: 600; font-size: 1rem; margin: 0; }
.nap-box__phone { font-size: 1.2rem; }
.nap-box__phone a { color: var(--blue); }

/* --- Checklist --- */
.checklist { list-style: none; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: #374151;
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '✓'; color: var(--yellow-dark); font-weight: 900; font-size: 0.95rem; flex-shrink: 0; margin-top: 2px; }

/* --- Two Col Layout --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col--wide { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 780px) { .two-col, .two-col--wide { grid-template-columns: 1fr; } }

/* --- Content Prose --- */
.prose h2 { margin-bottom: 14px; margin-top: 32px; color: var(--navy); }
.prose h3 { margin-bottom: 10px; margin-top: 24px; color: var(--navy); }
.prose p { color: #374151; margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; }
.prose ul li { color: #374151; margin-bottom: 6px; }
.prose a { color: var(--blue); }
.prose a:hover { text-decoration: underline; }

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand { margin-bottom: 16px; }
.footer__logo { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer__logo span { color: var(--yellow); }
.footer__desc { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  transition: background 0.2s;
  margin-bottom: 8px;
}
.footer__phone:hover { background: var(--yellow-dark); }
.footer h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--yellow); margin-bottom: 20px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
.footer__locations { display: flex; flex-direction: column; gap: 16px; }
.footer__loc { font-size: 0.85rem; }
.footer__loc strong { display: block; color: var(--white); margin-bottom: 2px; }
.footer__loc a { color: var(--yellow); font-weight: 700; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}
.footer__bottom a { color: rgba(255,255,255,0.6); }
.footer__bottom a:hover { color: var(--white); }

/* --- Sticky Call Bar (mobile) --- */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--yellow);
  color: var(--navy);
  text-align: center;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
}
.sticky-call a { color: var(--navy); display: flex; align-items: center; justify-content: center; gap: 10px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 60px;
    background: var(--white);
    padding: 24px 24px;
    z-index: 999;
    align-items: flex-start;
    gap: 20px;
    overflow-y: auto;
  }
  .nav__dropdown { position: static; opacity: 1; pointer-events: all; box-shadow: none; transform: none; border: none; background: var(--gray-light); margin-top: 8px; }
  .sticky-call { display: block; }
  body { padding-bottom: 58px; }
}
@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .hero { padding: 56px 0 70px; }
}
