/* Great Lakes Electric — site styles
   Brand: black #000, yellow #fffd38, light grey #f6f6f6, Poppins.
   One file for every page. Bump ?v=NN on the <link> tag when you edit it. */

:root {
  --black: #000000;
  --ink: #1f2124;
  --muted: #55595c;
  --yellow: #fffd38;
  --yellow-dark: #e8e62a;
  --grey: #f6f6f6;
  --line: #e7e7e7;
  --white: #ffffff;
  --green: #39b54a;
  --radius: 10px;
  --shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
  --maxw: 1200px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--grey { background: var(--grey); }
.section-title { text-align: center; margin-bottom: 8px; }
.section-title::after {
  content: ""; display: block; width: 180px; height: 2px;
  background: var(--line); margin: 14px auto 0;
}
.section-intro { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--yellow); color: var(--black);
  font-weight: 700; text-decoration: none; text-transform: uppercase;
  padding: 12px 28px; border-radius: 999px; border: 0;
  font-family: var(--font); font-size: .95rem; cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,.25);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--yellow-dark); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn--block { width: 100%; justify-content: center; border-radius: 6px; font-size: 1rem; padding: 14px; }
.btn svg { width: 1em; height: 1em; fill: currentColor; }

/* ---- header ---- */
.site-header {
  background: var(--white); position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}
.nav__logo img { width: 75px; height: 50px; }
.nav__links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__links > li { position: relative; }
.nav__links a, .nav__links button {
  display: block; padding: 10px 14px; text-decoration: none; font-weight: 500;
  font-size: .95rem; color: var(--ink); background: none; border: 0;
  font-family: var(--font); cursor: pointer; border-radius: 6px;
}
.nav__links a:hover, .nav__links button:hover, .nav__links a[aria-current="page"] { background: var(--grey); }
.nav__links button::after { content: " ▾"; font-size: .8em; }
.submenu {
  list-style: none; margin: 0; padding: 8px; display: none;
  position: absolute; left: 0; top: 100%; min-width: 280px;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.submenu a { font-weight: 400; padding: 8px 12px; }
.has-sub.open > .submenu, .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: block; }
.nav__phone {
  display: flex; align-items: center; gap: 8px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.nav__phone svg { width: 18px; height: 18px; fill: var(--black); }
.nav__toggle {
  display: none; background: none; border: 0; font-size: 1.6rem; line-height: 1;
  padding: 6px 10px; cursor: pointer; color: var(--ink);
}

/* ---- hero ---- */
.hero {
  position: relative; color: var(--white);
  background: #1a1a1a url("images/hero-house.jpg") center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.55) 100%);
}
.hero .container { position: relative; }
.hero__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  padding: 64px 0; align-items: start;
}
.hero h1 { margin-bottom: 8px; }
.hero__sub { font-weight: 600; font-size: 1.15rem; margin-bottom: 18px; }
.hero__copy { max-width: 540px; }
.hero__copy p { margin-top: 18px; }
.review-card {
  background: var(--white); color: var(--ink); border-radius: 8px;
  padding: 16px 18px; max-width: 420px; margin-top: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.review-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-card__head img { width: 32px; height: 32px; }
.review-card__name { font-weight: 600; font-size: .9rem; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: #f5b301; }
.stars--lg svg { width: 32px; height: 32px; }
.review-card p { font-size: .85rem; margin: 0; }

/* ---- quote form ---- */
.quote {
  background: rgba(0,0,0,.72); border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px; padding: 28px 28px 22px; backdrop-filter: blur(2px);
}
.quote h2 { text-align: center; font-size: 1.6rem; margin-bottom: 6px; }
.quote > p { text-align: center; font-size: .9rem; margin-bottom: 18px; }
.quote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote input, .quote textarea {
  width: 100%; font-family: var(--font); font-size: .95rem;
  padding: 11px 14px; border-radius: 6px; border: 1px solid #ccc;
  background: var(--white); color: var(--ink); margin-bottom: 12px;
}
.quote textarea { min-height: 96px; resize: vertical; }
.quote input:focus, .quote textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--yellow); }
.quote__hp { position: absolute; left: -9999px; }
.quote__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; font-size: .8rem; }
.quote__foot img { width: 120px; }
.quote__msg { margin-top: 12px; font-size: .9rem; text-align: center; min-height: 1.4em; }
.quote__msg a { color: var(--yellow); }
.quote__msg--ok { color: #9cf5a9; }
.quote__msg--err { color: #ffb3b3; }

/* ---- service cards (homepage) ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-align: center; padding-bottom: 24px;
}
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card h3 { font-size: 1.35rem; margin: 22px 20px 12px; }
.card p { margin: 0 20px; font-size: .95rem; }

/* ---- two-column content blocks ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--rev > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; }
.split h2 { margin-bottom: 4px; }
.split > div > h2 + h3 { color: var(--muted); font-weight: 500; font-size: 1.1rem; margin-bottom: 14px; }
.photo-stack { display: grid; gap: 16px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-pair img { aspect-ratio: 1 / 1; object-fit: cover; }
.service-block h3, .prose h3 { font-size: 1.15rem; margin-top: 18px; color: var(--ink); font-weight: 600; }
.service-block h3:first-child { margin-top: 0; }

/* ---- feature trio ---- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trio h3 { font-size: 1.15rem; }
.trio h3::before { content: "⚡ "; }

/* ---- checklist ---- */
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.6em; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1em; height: 1em;
  border-radius: 50%; background: var(--black);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.5-4.3-4.3 1.4-1.4 2.9 2.9 5.8-5.8 1.4 1.4-7.2 7.2z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.5-4.3-4.3 1.4-1.4 2.9 2.9 5.8-5.8 1.4 1.4-7.2 7.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--grey); border-radius: var(--radius); padding: 22px 20px 20px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--yellow); font-weight: 700; margin-bottom: 10px;
}

/* ---- Gemstone Lights / financing ---- */
.gem { background: #0b0f14; color: #e8eef3; }
.gem h2 { color: var(--white); }
.gem img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--yellow); margin-bottom: 8px; }
.btn--gem { background: #1b9cd4; color: var(--white); }
.btn--gem:hover { background: #1685b6; }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.finance { margin-top: 22px; padding: 14px 16px; border-left: 4px solid var(--yellow); background: rgba(255,255,255,.06); font-size: .95rem; }
.card h3 a { text-decoration: none; }
.card > a img { transition: opacity .15s; }
.card > a:hover img { opacity: .9; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
.faq p { margin: 10px 0 0; }

/* ---- Financeit slot ---- */
.financeit-slot { max-width: 820px; margin: 0 auto; }
.financeit-slot iframe { width: 100%; border: 0; }
.financeit-placeholder { background: var(--grey); border: 2px dashed var(--line); border-radius: var(--radius); padding: 36px 24px; text-align: center; }
.financeit-placeholder p:last-child { margin: 0; }
.finance a { color: var(--yellow); }

/* ---- consultation band ---- */
.band {
  position: relative; color: var(--white); text-align: center;
  background: #111 url("images/band-tools.jpg") center/cover no-repeat;
  padding: 72px 0;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.78); }
.band .container { position: relative; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.band p { margin-bottom: 20px; }

/* ---- testimonials ---- */
.testimonials { text-align: center; }
.testimonials .stars { margin-bottom: 8px; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; text-align: center; }
.tcard {
  background: var(--white); border-radius: 4px; padding: 36px 28px 28px;
  box-shadow: 0 6px 0 rgba(0,0,0,.12); display: flex; flex-direction: column; gap: 18px;
}
.tcard blockquote { margin: 0; font-style: italic; font-size: .95rem; flex: 1; }
.tcard cite { font-style: normal; font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.tcard cite img { width: 36px; height: 36px; border-radius: 50%; }
.tcard cite a { text-decoration: none; }

/* ---- contact block ---- */
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.contact-list svg { width: 18px; height: 18px; flex: none; margin-top: .3em; fill: var(--black); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---- page hero (inner pages share .hero) ---- */
.page-intro { padding: 56px 0 0; }

/* ---- legal pages ---- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* ---- footer ---- */
.site-footer { background: var(--black); color: #d8d8d8; font-size: .9rem; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 36px; }
.site-footer h3 { color: var(--yellow); font-size: 1.15rem; margin-bottom: 14px; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin: 12px 0 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #d8d8d8; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .footer-logo { width: 90px; height: 90px; margin-bottom: 14px; }
.site-footer .contact-list svg { fill: var(--yellow); }
.social { display: flex; gap: 12px; margin-top: 14px; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #222; }
.social svg { width: 18px; height: 18px; fill: var(--yellow); }
.footer-bottom {
  border-top: 1px solid #2a2a2a; margin-top: 44px; padding: 18px 0;
  text-align: center; font-size: .8rem; text-transform: uppercase; letter-spacing: .02em;
}

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

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .cards, .trio, .tgrid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__phone span { display: none; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; background: var(--white);
    padding: 12px 20px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.15);
  }
  .nav__links.open { display: flex; }
  .nav__links > li { width: 100%; }
  .nav__links a, .nav__links button { width: 100%; text-align: left; padding: 12px 10px; }
  .submenu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 6px 16px; min-width: 0; }
  .has-sub:hover > .submenu { display: none; }
  .has-sub.open > .submenu { display: block; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 56px; }
  .split, .split--rev { grid-template-columns: 1fr; gap: 28px; }
  .split--rev > :first-child { order: 0; }
  .quote__row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 48px 0; }
}
@media (max-width: 600px) {
  .cards, .trio, .tgrid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .quote { padding: 22px 18px 18px; }
  .quote__foot { flex-direction: column; text-align: center; }
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    justify-content: center; align-items: center; gap: 8px;
    background: var(--yellow); color: var(--black); font-weight: 700;
    padding: 14px; text-decoration: none; text-transform: uppercase;
    box-shadow: 0 -4px 12px rgba(0,0,0,.2);
  }
  .callbar svg { width: 18px; height: 18px; fill: currentColor; }
  body { padding-bottom: 56px; }
}
