/* ==========================================================================
   Kehrmeyer Electric — stylesheet
   Palette is driven by the logo: deep navy + electric amber accent.
   Edit the variables below to retune the whole site at once.
   ========================================================================== */

:root {
  --navy:        #1F2D50;
  --navy-deep:   #16213C;
  --navy-soft:   #2C3E66;
  --amber:       #F5A623;
  --amber-dark:  #D98C0C;

  --ink:         #1A2033;
  --ink-mid:     #4A5568;
  --ink-soft:    #6B7688;
  --line:        #E2E6ED;
  --bg:          #FFFFFF;
  --bg-alt:      #F6F8FB;

  --wrap:        1120px;
  --radius:      10px;
  --radius-lg:   16px;

  --shadow-sm:   0 1px 2px rgba(22, 33, 60, .06), 0 2px 8px rgba(22, 33, 60, .04);
  --shadow-md:   0 4px 12px rgba(22, 33, 60, .08), 0 12px 32px rgba(22, 33, 60, .06);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--amber);
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--amber-dark); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.btn-call {
  background: var(--navy);
  color: #fff;
}
.btn-call:hover { background: var(--navy-deep); }

.btn-lg   { padding: .95rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.02rem; color: var(--navy); letter-spacing: -.01em; }
.brand-text small { font-size: .74rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; gap: 1.6rem; }
.nav a {
  text-decoration: none;
  font-size: .93rem;
  font-weight: 550;
  color: var(--ink-mid);
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover { color: var(--navy); border-bottom-color: var(--amber); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 78% 25%, rgba(245, 166, 35, .16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: .9rem;
}
.eyebrow-light { color: var(--amber); }

.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
.lede {
  margin-top: 1.15rem;
  font-size: 1.09rem;
  color: rgba(255, 255, 255, .8);
  max-width: 54ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note {
  margin-top: 1.4rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

.hero-badge img {
  width: 230px; height: 230px;
  filter: brightness(0) invert(1);
  opacity: .12;
}

/* ---------- Trust bar ---------- */
.trustbar { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trustbar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.6rem 0;
}
.trust-item { text-align: center; }
.trust-item strong { display: block; color: var(--navy); font-size: 1.02rem; }
.trust-item span { font-size: .84rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }

.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); font-weight: 780; color: var(--navy); }
.section-dark .section-head h2 { color: #fff; }
.section-sub { margin-top: .9rem; color: var(--ink-mid); font-size: 1.04rem; }

/* ---------- Services split ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
/* Four service categories lay out as a balanced 2x2 on wide screens. */
.split.split-4 { grid-template-columns: repeat(2, 1fr); }
.split-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.svc-more {
  margin-top: 1.25rem;
  font-weight: 650;
  font-size: .92rem;
  color: var(--navy);
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  transition: color .15s ease;
}
.svc-more:hover { color: var(--amber-dark); }
.split-title {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.22rem;
  color: var(--navy);
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--amber);
}
.split-title svg { color: var(--amber); flex: none; }

.svc-list li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.svc-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.svc-list strong { display: block; color: var(--ink); font-size: .98rem; }
.svc-list span { font-size: .89rem; color: var(--ink-soft); }

/* ---------- Service area ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.area-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  font-weight: 550;
  color: var(--navy);
  font-size: .95rem;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.area-grid a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber);
}
.area-note { margin-top: 1.75rem; color: var(--ink-mid); }
.area-note a { color: var(--navy); font-weight: 650; text-underline-offset: 3px; }

/* County cards — the top-level entry into the service area */
.area-grid-counties { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 2.25rem; }
.area-grid-counties a {
  border-left-width: 4px;
  padding: 1.15rem 1.25rem;
}
.area-grid-counties strong { display: block; font-size: 1.05rem; color: var(--navy); }
.area-grid-counties span { display: block; margin-top: .3rem; font-size: .85rem; font-weight: 400; color: var(--ink-soft); }
.area-subhead {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0 0 1rem;
}

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-num {
  font-size: .8rem;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: .1em;
  margin-bottom: .9rem;
}
.why-card h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: .55rem; }
.why-card p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.review {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.stars { color: var(--amber); letter-spacing: .12em; font-size: 1rem; margin-bottom: .9rem; }
.review blockquote {
  margin: 0 0 1.1rem;
  font-size: .97rem;
  color: var(--ink-mid);
  flex: 1;
}
.review figcaption { font-size: .87rem; font-weight: 650; color: var(--navy); }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-copy .lede { color: rgba(255, 255, 255, .78); }

.contact-list { margin-top: 2.25rem; }
.contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.ci-label {
  display: block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: rgba(255, 255, 255, .5);
  margin-bottom: .2rem;
}
.ci-value { color: #fff; font-size: 1.04rem; font-weight: 600; text-decoration: none; }
a.ci-value:hover { color: var(--amber); }

.quote-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .18);
}
.form-note { margin-top: .85rem; font-size: .8rem; color: var(--ink-soft); text-align: center; }

/* Honeypot field — visually and functionally hidden from real users. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Confirmation / error banner shown after the form redirects back. */
.form-status {
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: .95rem;
  font-weight: 550;
}
.form-status.is-success { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.form-status.is-error   { background: #FDECEA; color: #B71C1C; border: 1px solid #F5C6CB; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .72); padding: 3rem 0 1.5rem; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand { display: flex; gap: .9rem; align-items: center; max-width: 42ch; }
.footer-brand img { filter: brightness(0) invert(1); opacity: .9; flex: none; }
.footer-brand strong { color: #fff; display: block; }
.footer-brand p { font-size: .87rem; margin-top: .2rem; }

.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--amber); }

.footer-legal {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}
.footer-legal a { color: rgba(255, 255, 255, .5); text-decoration: none; }
.footer-legal a:hover { color: var(--amber); }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  align-items: center; justify-content: center; gap: .5rem;
  background: var(--amber);
  color: var(--navy-deep);
  font-weight: 750;
  text-decoration: none;
  padding: 1rem;
  box-shadow: 0 -2px 16px rgba(22, 33, 60, .18);
}

/* ---------- Service pages: detail list + FAQ ---------- */
.svc-detail { max-width: 760px; }
.svc-detail .svc-list li { padding: 1rem 0; }

.faq { max-width: 820px; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.35rem;
  font-weight: 650;
  color: var(--navy);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--amber-dark);
  line-height: 1;
  flex: none;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.35rem 1.2rem; color: var(--ink-mid); font-size: .97rem; }
.faq-answer p { margin: 0; }

/* Homepage FAQ sits on the alt background — keep cards white */
.section-alt .faq-item { border-color: var(--line); }

/* ---------- City landing pages ---------- */
.hero-sub { padding: 3.25rem 0 3rem; }
.hero-sub h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .45rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 1.4rem;
}
.breadcrumb a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb .crumb-sep { color: rgba(255, 255, 255, .35); }

.city-body { max-width: 68ch; }
.city-body p + p { margin-top: 1rem; }
.city-body { color: var(--ink-mid); font-size: 1.02rem; }

.cta-band {
  background:
    radial-gradient(700px 300px at 80% 30%, rgba(245, 166, 35, .14), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-band h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .75); margin-top: .4rem; font-size: .98rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 720px) {
  /* Nav + header call button collapse; the sticky bottom bar takes over calling. */
  .nav, .btn-call { display: none; }
  .mobile-call { display: flex; }
  body { padding-bottom: 60px; }

  .split.split-4 { grid-template-columns: 1fr; }

  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .section-head { margin-bottom: 2rem; }
  .why-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .quote-form { padding: 1.5rem; }
  .split-col { padding: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
