/* LCI Engineers shared visual system */
:root {
  --ink: #142533;
  --muted: #5b6b78;
  --paper: #f4f6f7;
  --white: #fff;
  --navy: #102638;
  --blue: #087e9b;
  --blue-dark: #06657e;
  --line: #dce3e7;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(17, 40, 56, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0 !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: Inter, "Segoe UI", sans-serif !important;
  line-height: 1.7;
}
::selection { background: #bce8ef; color: var(--navy); }
a { text-decoration: none; }
img { max-width: 100%; }

body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 24px !important;
  background: rgba(16, 38, 56, .97) !important;
  box-shadow: 0 8px 28px rgba(10, 25, 37, .14) !important;
  backdrop-filter: blur(12px);
}
body > header > div {
  width: min(1180px, 100%);
  gap: 18px;
}
body > header > div > a {
  padding: 8px 0 !important;
  color: #fff !important;
  font-size: 1.15rem !important;
  letter-spacing: .08em !important;
  white-space: nowrap;
}
body > header nav ul {
  gap: 4px;
}
body > header nav a {
  display: inline-block;
  padding: 9px 13px !important;
  border-radius: 999px !important;
  color: #d5e1e8 !important;
  font-size: .9rem !important;
  transition: background .2s ease, color .2s ease;
}
body > header nav a:hover,
body > header nav a.bg-gray-700 {
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}

main, body > main {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
  margin: 48px auto 72px !important;
  padding: 0 !important;
}
main > section,
main > div.max-w-4xl,
main > div.max-w-6xl,
body > div.max-w-4xl,
body > div.max-w-6xl {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px !important;
  margin: 48px auto 72px !important;
  border: 1px solid rgba(220, 227, 231, .85);
  border-radius: var(--radius) !important;
  background-color: var(--white) !important;
  box-shadow: var(--shadow) !important;
}
main > section { padding: clamp(24px, 5vw, 56px) !important; margin-bottom: 28px !important; }
h1, h2, h3 { color: var(--ink) !important; line-height: 1.16; letter-spacing: -.035em; }
h1 { font-size: clamp(2.2rem, 5vw, 4.3rem) !important; }
h2 { font-size: clamp(1.65rem, 3vw, 2.55rem) !important; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem) !important; }
p, li { color: var(--muted); }
main a:not([class*="bg-"]):not(.learn-more-link) { color: var(--blue); }

/* Homepage hero */
.home-bg-image {
  min-height: 510px;
  padding: clamp(34px, 7vw, 88px) !important;
  align-items: flex-start !important;
  text-align: left !important;
  justify-content: center;
  background-position: center 48% !important;
  border: 0 !important;
  overflow: hidden;
  isolation: isolate;
}
.home-bg-image::before {
  inset: 0 !important;
  z-index: -1 !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, rgba(8, 27, 41, .91), rgba(8, 27, 41, .62) 58%, rgba(8, 27, 41, .18)) !important;
}
.home-bg-image h1, .home-bg-image p { color: #fff !important; }
.home-bg-image h1 { max-width: 780px; margin-bottom: 20px; }
.home-bg-image p { max-width: 700px !important; font-size: clamp(1rem, 1.5vw, 1.2rem) !important; }
.home-bg-image a, main a[class*="bg-blue-"] {
  border-radius: 999px !important;
  background: var(--blue) !important;
  box-shadow: 0 8px 22px rgba(8, 126, 155, .24) !important;
  transition: transform .2s ease, background .2s ease;
}
.home-bg-image a:hover, main a[class*="bg-blue-"]:hover { background: var(--blue-dark) !important; transform: translateY(-2px); }
#client-banner-section { text-align: left; }
#client-banner-section h2 { display: block; width: fit-content; max-width: 100%; border-color: var(--blue) !important; }
#client-banner-section img { max-height: 440px; object-fit: contain !important; background: #fff; }

/* Keep the electrical service title on one line at common desktop widths. */
.max-w-6xl > h1 {
  width: fit-content;
  max-width: 100%;
  font-size: clamp(2rem, 4vw, 3.25rem) !important;
  border-color: var(--blue) !important;
}

/* Cards, service grids, contact form, and images */
.grid > div, .grid > article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 24px;
}
.grid img { border-radius: 12px !important; }
.learn-more-link { display: inline-block; border-radius: 999px !important; background: var(--navy) !important; }
input, textarea, select {
  border: 1px solid #cad5dc !important;
  border-radius: 10px !important;
  background: #fbfcfd !important;
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(8,126,155,.18) !important; border-color: var(--blue) !important; }
button[type="submit"] { border-radius: 999px !important; background: var(--blue) !important; }
iframe { border: 1px solid var(--line); border-radius: 12px; }

body > footer {
  margin-top: 72px !important;
  padding: 34px 24px !important;
  background: var(--navy) !important;
  color: #cad7df !important;
}
body > footer p { color: #cad7df !important; }
body > footer a { color: #e1edf2 !important; }

@media (max-width: 720px) {
  body > header { padding: 10px 16px !important; }
  body > header > div { flex-direction: column; }
  body > header nav ul { justify-content: center; }
  body > header nav a { padding: 7px 10px !important; font-size: .82rem !important; }
  main, body > main { width: min(100% - 28px, 1180px) !important; margin: 24px auto 48px !important; }
  .home-bg-image { min-height: 470px; }
  body > div.max-w-4xl, body > div.max-w-6xl { width: calc(100% - 28px); margin: 24px auto 48px !important; padding: 26px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
