/* Lead Electric Inc. — site styles */

:root {
  --white: #FFFFFF;
  --band: #F2F3F1;
  --line: #E3E5E2;
  --black: #000000;
  --body: #3A3F45;
  --muted: #5E636B;
  --red: #D0202E;
  --blue: #1F5FBF;
  --field: #7A8087;
  --on-black: #A7ACB2;
  --on-black-link: #D9DCDF;
  --black-rule: #2C2F33;
  --black-outline: #6B7178;
  --display: "Barlow Semi Condensed", "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(24px, 8.33vw, 120px);
  --radius: 6px;
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--white);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--black); }
a:hover { color: var(--blue); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
}

p { margin: 0; }

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--white);
  font-weight: 600;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { flex-shrink: 0; }
.btn-sm { height: 48px; padding: 0 24px; font-size: 17px; }

.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #2A2D31; color: var(--white); }

.btn-grey { background: var(--band); color: var(--black); }
.btn-grey:hover { background: var(--line); color: var(--black); }

.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--band); color: var(--black); }

.btn-outline { border: 1.5px solid var(--black-outline); background: transparent; color: var(--white); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }

.text-link {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}
.wordmark-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--black);
  white-space: nowrap;
}
.wordmark-rules { display: flex; flex-direction: column; gap: 3px; }
.wordmark-rules span { display: block; height: 3px; background: var(--red); }
.wordmark-rules span + span { background: var(--blue); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.8vw, 40px);
}
.main-nav > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav > a:not(.btn):hover { color: var(--blue); }
.main-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.header-mobile { display: none; align-items: center; gap: 8px; }

.icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--band);
  color: var(--black);
  cursor: pointer;
}
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: flex;
  align-items: center;
  height: 56px;
  font-size: 19px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(680px, 46.75vw);
  padding: 112px 0 120px;
}
.hero-conduit {
  position: absolute;
  top: 0;
  right: 0;
  width: min(640px, 44vw);
  height: auto;
}
.hero-conduit-mobile { display: none; }
.hero-copy {
  position: relative;
  max-width: min(720px, 52vw);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero h1 {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.04;
}
.hero-lead {
  max-width: 560px;
  font-size: 21px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
}
.only-narrow { display: none; }

/* ---------- Home: services ---------- */

.services { padding: 120px 0; background: var(--band); }
.services h2 {
  margin-bottom: 64px;
  font-size: clamp(34px, 3.35vw, 48px);
  line-height: 1.1;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
}
.service { display: flex; flex-direction: column; gap: 28px; }
.service h3 { font-size: 28px; line-height: 1.2; }
.service p { margin-top: 12px; }

.rule { display: block; width: 56px; height: 4px; background: var(--black); }
.rule-red { background: var(--red); }
.rule-blue { background: var(--blue); }

/* ---------- Projects (shared) ---------- */

.featured-projects { padding: 120px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(34px, 3.35vw, 48px); line-height: 1.1; }

.featured {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: center;
  gap: 64px;
}
.featured h3 { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.15; }
.featured-body { display: flex; flex-direction: column; gap: 20px; }

.photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--band);
}

.title-group { display: flex; flex-direction: column; gap: 6px; }
.meta { font-size: 17px; line-height: 1.5; color: var(--muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px 64px;
}
.featured + .card-grid { margin-top: 64px; }
.card { display: flex; flex-direction: column; gap: 28px; }
.card-body { display: flex; flex-direction: column; gap: 14px; }
.card h2, .card h3 { font-size: clamp(24px, 2vw, 28px); line-height: 1.2; }

/* ---------- Projects page ---------- */

.page-intro {
  position: relative;
  overflow: hidden;
  padding: 112px 0 96px;
}
.intro-conduit {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 36vw);
  height: auto;
}
.page-intro .wrap { position: relative; }
.page-intro h1 { font-size: clamp(48px, 5vw, 72px); line-height: 1.04; }
.page-intro p {
  max-width: 600px;
  margin-top: 28px;
  font-size: 21px;
  line-height: 1.55;
}
.project-list { padding-bottom: 128px; }

/* ---------- Contact page ---------- */

.contact { padding: 112px 0 128px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 80px;
}
.contact h1 { font-size: clamp(44px, 4.45vw, 64px); line-height: 1.04; }
.contact-lead { margin-top: 24px; font-size: 20px; line-height: 1.55; }

.details { margin: 48px 0 0; border-bottom: 1px solid var(--line); }
.details > div {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.details dt {
  width: 132px;
  flex-shrink: 0;
  padding-top: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--muted);
}
.details dd { margin: 0; display: flex; flex-direction: column; }
.details dd > a,
.details dd > span {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--black);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.details dd > a:hover { color: var(--blue); }

.form-panel { padding: 48px; border-radius: var(--radius); background: var(--band); }
.form-panel h2 { margin-bottom: 32px; font-size: 32px; line-height: 1.15; }

.fields { display: flex; flex-direction: column; gap: 24px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--black); }
.field label span { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  margin: 0;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background-color: var(--white);
  font-family: var(--text);
  font-size: 17px;
  color: var(--black);
}
.field input,
.field select { height: 52px; padding: 0 16px; }
.field select {
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px 20px;
}
.field textarea { min-height: 152px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.field input:user-invalid { border-color: var(--red); }

.form-help { font-size: 15px; line-height: 1.5; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.or-call {
  display: inline-block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Thank-you and 404 ---------- */

.message { padding: 128px 0 160px; }
.message .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.message h1 { font-size: clamp(44px, 4.45vw, 64px); line-height: 1.04; }
.message p { max-width: 560px; font-size: 20px; line-height: 1.55; }
.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--black);
}

/* ---------- Footer ---------- */

.site-footer { padding: 112px 0 56px; background: var(--black); color: var(--on-black); }
.site-footer.compact { padding-top: 96px; }

.footer-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
  padding-bottom: 96px;
}
.footer-cta h2 {
  font-size: clamp(34px, 3.9vw, 56px);
  line-height: 1.08;
  color: var(--white);
}
.footer-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--black-rule);
}
.compact .footer-main { padding-top: 0; border-top: 0; }

.footer-brand { width: 380px; display: flex; flex-direction: column; gap: 20px; }
.footer-brand a { align-self: flex-start; }
.footer-brand img { width: 200px; height: auto; }
.footer-brand p { font-size: 17px; line-height: 1.6; }

.footer-cols { display: flex; gap: 112px; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col h2 {
  font-family: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--white);
}
.footer-col a {
  font-size: 17px;
  line-height: 1.5;
  color: var(--on-black-link);
  text-decoration: none;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  :root { --header-h: 72px; }
  .main-nav { display: none; }
  .header-mobile { display: flex; }
  .wordmark { gap: 5px; }
  .wordmark-text { font-size: 18px; }
  .wordmark-rules { gap: 2px; }
  .wordmark-rules span { height: 2px; }
  .footer-cta { flex-direction: column; align-items: flex-start; gap: 32px; }
}

@media (min-width: 1181px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 1100px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}

@media (max-width: 960px) {
  body { font-size: 17px; }

  .hero { min-height: 0; padding: 40px 0 0; }
  .hero-conduit { display: none; }
  .hero-conduit-mobile { display: block; width: 100%; max-width: 520px; height: auto; margin-top: 48px; }
  .hero-copy { max-width: none; gap: 20px; }
  .hero h1 { line-height: 1.05; }
  .hero-lead { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; }
  .only-wide { display: none; }
  .only-narrow { display: inline-flex; }

  .services { padding: 72px 0; }
  .services h2 { margin-bottom: 40px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .service { gap: 20px; }
  .service h3 { font-size: 24px; }

  .featured-projects { padding: 72px 0; }
  .section-head { flex-wrap: wrap; margin-bottom: 40px; }
  .featured { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .featured + .card-grid { margin-top: 56px; }
  .card { gap: 20px; }

  .page-intro { padding: 56px 0 48px; }
  .intro-conduit { display: none; }
  .page-intro p { font-size: 18px; margin-top: 20px; }
  .project-list { padding-bottom: 72px; }

  .contact { padding: 56px 0 72px; }
  .contact-lead { font-size: 18px; }

  .message { padding: 72px 0 96px; }

  .site-footer { padding: 72px 0 48px; }
  .site-footer.compact { padding-top: 64px; }
  .footer-cta { align-items: stretch; gap: 28px; padding-bottom: 56px; }
  .footer-cta br { display: none; }
  .footer-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .footer-main { flex-direction: column; gap: 40px; padding-top: 40px; }
  .footer-brand { width: auto; gap: 16px; }
  .footer-brand img { width: 180px; }
  .footer-cols { flex-direction: column; gap: 32px; }
  .footer-col { gap: 10px; }
}

@media (max-width: 600px) {
  .form-panel { padding: 24px; }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .details dt { width: 104px; }
  .form-actions .btn { width: 100%; }
}
