/* Dan&Ell Electric — design system
   Plain CSS, no build step. Mobile-first. */

:root {
  --navy: #0f2a43;
  --navy-2: #163a5a;
  --blue: #1f6fb2;
  --blue-dark: #175a91;
  --amber: #f6b301;
  --amber-dark: #d99900;
  --ink: #1a2732;
  --body: #384656;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-navy: #0f2a43;
  --ok: #1f9d55;
  --radius: 10px;
  --shadow: 0 2px 4px rgba(15,42,67,.04), 0 8px 18px rgba(15,42,67,.08), 0 18px 44px rgba(15,42,67,.10);
  --shadow-sm: 0 1px 2px rgba(15,42,67,.05), 0 4px 12px rgba(15,42,67,.07);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  line-height: 1.65;
  font-size: 17px;
  background: var(--bg);
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: 2.35rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { padding-left: 1.2em; }
li { margin-bottom: .4rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--bg-navy); color: #cdd9e5; }
.section-navy h2, .section-navy h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--body); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .6rem; }
.section-navy .eyebrow { color: var(--amber); }
.hero .eyebrow { color: var(--amber); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 1.02rem; text-align: center; cursor: pointer;
  border: 2px solid transparent; transition: transform .06s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-dark); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 1.1rem; }

/* Top utility bar */
.topbar { background: var(--navy-2); color: #cfe0ee; font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .lic { color: #9fb8cd; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; color: var(--navy); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .bolt { display: inline-flex; width: 34px; height: 34px; border-radius: 8px; background: var(--amber); color: var(--navy); align-items: center; justify-content: center; font-size: 1.2rem; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-link { font-weight: 800; font-size: 1.15rem; color: var(--navy); white-space: nowrap; }
.phone-link:hover { color: var(--blue); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* Hero */
.hero {
  background:
    linear-gradient(100deg, rgba(13,35,57,.93) 0%, rgba(13,35,57,.80) 34%, rgba(13,35,57,.38) 60%, rgba(13,35,57,.10) 100%),
    url('/img/owner-at-panel.jpg') center 42%/cover no-repeat;
  background-attachment: scroll;
  color: #dbe7f1;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 66px; padding-bottom: 66px; }
.hero h1 { color: #fff; }
.hero .lead { color: #b9cee0; }
.hero ul.ticks { list-style: none; padding: 0; margin: 20px 0 26px; }
.hero ul.ticks li { position: relative; padding-left: 30px; color: #cfe0ee; font-weight: 600; }
.hero ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 900; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Lead card / form */
.lead-card { background: #fff; color: var(--body); border-radius: 14px; box-shadow: var(--shadow); padding: 26px; }
.lead-card h3 { color: var(--navy); margin-bottom: .2rem; }
.lead-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: #fbfdff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 18px; padding: 22px 20px; }
.trust .item { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: .96rem; }
.trust .item .ic { color: var(--blue); font-size: 1.3rem; }

/* Service grid */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .1s ease, box-shadow .1s ease;
  display: block; color: var(--body);
}
a.card:hover { text-decoration: none; transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfdae6; }
.card .ic { font-size: 1.9rem; margin-bottom: 10px; display: block; }
.card h3 { color: var(--navy); margin-bottom: .35rem; }
.card p { margin-bottom: .6rem; font-size: .96rem; }
.card .more { font-weight: 700; color: var(--blue); font-size: .92rem; }

/* Price band */
.price-tag { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .84rem; font-weight: 700; color: var(--navy); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-left: 8px; }
.step .num { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }

/* Reviews */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.review .stars { color: var(--amber); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 8px; }
.review p { font-style: italic; color: var(--ink); }
.review .who { font-style: normal; font-weight: 700; color: var(--navy); font-size: .9rem; margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e2eefa; font-size: 1.1rem; }
.cta-band .btn-primary { margin-top: 8px; }

/* Content pages */
.page-hero { background: var(--navy); color: #cfe0ee; padding: 48px 0; }
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero .crumb { font-size: .85rem; color: #9fb8cd; margin-bottom: 12px; }
.page-hero .crumb a { color: #cfe0ee; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.callout { background: var(--bg-soft); border-left: 4px solid var(--amber); border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 24px 0; }
.faq { border-top: 1px solid var(--line); padding: 18px 0; }
.faq h3 { margin: 0 0 .3rem; color: var(--navy); }
.faq p { margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: 90px; }
.sidebar .lead-card { padding: 22px; }

/* City chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* Footer */
.site-footer { background: var(--navy); color: #9fb8cd; padding: 54px 0 26px; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #cdd9e5; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .82rem; color: #7f97ac; }
.footer-bottom .disclaimer { margin-top: 8px; font-size: .78rem; color: #6b8299; }

/* Sticky mobile call bar */
.mobile-callbar { display: none; }

@media (max-width: 900px) {
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.5rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav, .header-cta .phone-link { display: none; }
  .nav-toggle { display: block; }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px; gap: 14px; box-shadow: var(--shadow); }
  .topbar .wrap { justify-content: center; }
  .topbar .lic { display: none; }
  .mobile-callbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; }
  .mobile-callbar a { flex: 1; text-align: center; padding: 14px; font-weight: 800; font-size: 1.05rem; }
  .mobile-callbar .call { background: var(--amber); color: var(--navy); }
  .mobile-callbar .quote { background: var(--blue); color: #fff; }
  body { padding-bottom: 54px; }
}
@media (max-width: 560px) {
  .trust .wrap { gap: 12px; }
  .trust .item { font-size: .85rem; }
  .section { padding: 44px 0; }
}

@media (max-width: 700px) {
  .hero {
    background:
      linear-gradient(rgba(13,35,57,.28) 0%, rgba(13,35,57,.42) 100%),
      url('/img/electrician-panel-work.jpg') center 22%/cover no-repeat;
  }
  .hero .wrap > div:first-child {
    background: rgba(13,35,57,.90);
    padding: 20px 18px 22px;
    border-radius: 14px;
  }
}

/* Page photos */
.photo-band { padding: 26px 0 0; }
.page-photo { margin: 0; }
.page-photo img { width: 100%; height: 340px; object-fit: cover; border-radius: 14px; display: block; }
@media (max-width: 700px) { .page-photo img { height: 220px; } }


/* ---- Depth & movement (added 2026-08-04 at Patrick's request) -----------------
   Deliberately restrained: half these visitors are on one bar of signal in a
   garage looking at a dead panel. Nothing here delays the phone number. ------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.22,.8,.3,1); }
.js .reveal:nth-child(2).in { transition-delay: .06s; }
.js .reveal:nth-child(3).in { transition-delay: .12s; }
.js .reveal:nth-child(4).in { transition-delay: .06s; }
.js .reveal:nth-child(5).in { transition-delay: .12s; }
.js .reveal:nth-child(6).in { transition-delay: .18s; }

/* Trust strip sits ON the hero rather than under it — overlap gives depth */
.trust { position: relative; z-index: 2; margin-top: -26px; }
.trust .wrap { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 18px 24px; }

/* Photo bands break the section grid slightly instead of stacking like bricks */
.page-photo img { border-radius: 14px; box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .btn:hover, a.card:hover { transform: none; }
}


/* ---- Real logo, supplied by the owners 2026-08-05 ---------------------------
   Replaces the ⚡ emoji that was standing in as the brand mark on all 15 pages.
   Header uses the cropped D-E monogram; footer sits the full stacked lockup on a
   white chip because the artwork has a light background and the footer is navy. */
.brand-mark { height: 62px; width: auto; display: block; }
.site-header .brand { display: flex; align-items: center; gap: 12px; }
.brand-chip {
  display: inline-block; background: #fff; border-radius: 10px;
  padding: 12px 16px; box-shadow: var(--shadow-sm);
}
.brand-chip img { height: 118px; width: auto; display: block; }
@media (max-width: 640px) { .brand-mark { height: 50px; } .brand-chip img { height: 92px; }
  .brand-sub { display: none; } }

/* Full logo used whole — cropping it clipped the wordmark (Patrick, 2026-08-05).
   Never crop this artwork; it is a stacked lockup and only reads complete. */
.brand-sub { font-size: .84rem; font-weight: 700; color: var(--navy); line-height: 1.25; }
.brand-sub small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
