/*
Theme Name: The Electrician Experts Child
Template: hello-elementor
Version: 1.0
*/
:root { --primary: #F57F17; --accent: #FF8F00; --text-dark: #212121; --text-light: #FAFAFA; --shadow: 0 2px 8px rgba(0,0,0,0.12); }
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text-dark); line-height: 1.6; -webkit-text-size-adjust: 100%; }
.site-top-bar { background: var(--primary); color: var(--text-light); padding: 10px 0; text-align: center; position: sticky; top: 0; z-index: 9999; font-weight: 600; }
.site-top-bar a { color: var(--text-light); text-decoration: none; font-size: 20px; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
nav ul li a { display: block; padding: 15px 18px; color: var(--text-dark); text-decoration: none; min-height: 54px; }
nav ul li a:hover { color: var(--primary); }
nav ul li ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: var(--shadow); min-width: 240px; z-index: 999; }
nav ul li:hover > ul { display: block; }
.cta-btn { display: inline-block; background: var(--accent); color: var(--text-light); padding: 16px 32px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 18px; min-height: 54px; }
.floating-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary); padding: 12px; text-align: center; z-index: 9998; }
.floating-cta a { color: white; text-decoration: none; font-weight: 700; font-size: 18px; display: block; min-height: 44px; line-height: 44px; }
input, textarea, select { font-size: 16px !important; }
@media (max-width: 768px) { .floating-cta { display: block; } body { padding-bottom: 68px; } nav ul { flex-direction: column; } nav ul li ul { position: static; } }

/* === RESPONSIVE LAYOUT FIX === */
/* Container width for content - adapts to screen */
body:not(.elementor-page) .site-main {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}
body:not(.elementor-page) .site-main > article {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
}
body:not(.elementor-page) .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}
/* Text content stays readable - centered container */
body:not(.elementor-page) .entry-content > p,
body:not(.elementor-page) .entry-content > ul,
body:not(.elementor-page) .entry-content > ol,
body:not(.elementor-page) .entry-content > h1,
body:not(.elementor-page) .entry-content > h2,
body:not(.elementor-page) .entry-content > h3,
body:not(.elementor-page) .entry-content > h4,
body:not(.elementor-page) .entry-content > blockquote,
body:not(.elementor-page) .entry-content > table,
body:not(.elementor-page) .entry-content > .wp-block-group:not(.alignfull):not(.alignwide),
body:not(.elementor-page) .entry-content > .wpforms-container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}
/* Full-width sections - backgrounds span full viewport */
body:not(.elementor-page) .entry-content > div[style*="background"],
body:not(.elementor-page) .entry-content > section,
body:not(.elementor-page) .entry-content > .alignfull,
body:not(.elementor-page) .entry-content > .wp-block-group.alignfull,
body:not(.elementor-page) .entry-content > .wp-block-cover {
  max-width: 100vw !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}
/* Inner content of full-width sections stays contained */
body:not(.elementor-page) .entry-content > div[style*="background"] > *,
body:not(.elementor-page) .entry-content > section > * {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Elementor pages - proper width handling */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1400px !important;
}
.elementor-section.elementor-section-full_width {
  max-width: 100% !important;
  width: 100% !important;
}
/* Header and footer full width */
body .site-header,
body .site-footer {
  max-width: 100% !important;
  width: 100% !important;
}
/* Inner header/footer content contained */
body .site-header > *,
body .site-footer > * {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
/* Hide page title on front page */
.home .entry-title,
.home .page-title,
.home h1.entry-title,
body.home .elementor-page-title,
body.home header.entry-header,
body.home .entry-header { display: none !important; }
/* Blog/archive pages - proper contained layout */
.blog .site-main,
.archive .site-main,
.single-post .site-main {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 40px 20px !important;
}
/* Mobile responsive adjustments */
@media (max-width: 768px) {
  body:not(.elementor-page) .entry-content > p,
  body:not(.elementor-page) .entry-content > ul,
  body:not(.elementor-page) .entry-content > ol,
  body:not(.elementor-page) .entry-content > h2,
  body:not(.elementor-page) .entry-content > h3 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}
/* Fix body overflow */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
}
/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

