/* EG Solar, LLC — lead services site
   Palette: solar yellow primary, warm light + white surfaces, logo indigo as accent. */

:root {
  --yellow: #ffc21f;
  --yellow-deep: #f2a900;
  --yellow-soft: #fff4d1;
  --indigo: #4b54a3;
  --indigo-deep: #3a4283;
  --ink: #1c2033;
  --ink-soft: #545a72;
  --white: #ffffff;
  --cream: #fffdf6;
  --line: #ece7d9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 32, 51, .05), 0 8px 24px rgba(28, 32, 51, .06);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--indigo); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 246, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; }
.brand span { font-size: 17px; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--indigo); }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 1px 2px rgba(28,32,51,.08), 0 6px 16px rgba(242,169,0,.28);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: var(--yellow-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--indigo);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { background: var(--white); border-color: var(--indigo); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -220px -160px auto auto;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,194,31,.42), rgba(255,194,31,0) 68%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow-soft); color: #8a6400;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  margin: 0 0 18px; font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08; letter-spacing: -.025em; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--indigo); }
.hero p.lede { margin: 0 0 30px; font-size: 18px; color: var(--ink-soft); max-width: 33em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: 26px;
}
.hero-card h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.hero-card .flow { list-style: none; margin: 18px 0 0; padding: 0; }
.hero-card .flow li { display: flex; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.hero-card .flow li:first-child { border-top: 0; }
.step {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.hero-card .flow strong { display: block; font-size: 15px; }
.hero-card .flow span { font-size: 14px; color: var(--ink-soft); }

/* ---------- sections ---------- */
section { padding: 68px 0; }
.section-head { max-width: 40em; margin-bottom: 38px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; font-weight: 800; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.band-white .card { background: var(--cream); }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 15px;
  background: var(--yellow-soft); display: grid; place-items: center;
}
.card .ico svg { width: 22px; height: 22px; stroke: var(--indigo); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- partner form ---------- */
.form-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--cream); transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--yellow-deep); box-shadow: 0 0 0 4px rgba(255,194,31,.22); background: var(--white);
}
.field textarea { min-height: 92px; resize: vertical; }
.consent {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--yellow-soft); border: 1px solid #f3e2ad;
  border-radius: 12px; padding: 14px; margin: 4px 0 18px;
}
.consent input { margin: 3px 0 0; width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--indigo); }
.consent label { font-size: 13.5px; line-height: 1.55; color: #5d4a12; }
.form-note { font-size: 13px; color: var(--ink-soft); margin: 14px 0 0; }
.form-status { margin-top: 14px; font-size: 15px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #1c7a45; }
.form-status.err { display: block; color: #b3261e; }

.checklist { list-style: none; margin: 22px 0 0; padding: 0; }
.checklist li { display: flex; gap: 11px; padding: 11px 0; font-size: 15px; color: var(--ink-soft); }
.checklist svg { flex: 0 0 20px; width: 20px; height: 20px; stroke: var(--yellow-deep); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

/* ---------- contact strip ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-grid a { text-decoration: none; }
.contact-grid .card:hover { border-color: var(--yellow-deep); }
.contact-grid .k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.contact-grid .v { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 5px; word-break: break-word; }

/* ---------- footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 44px 0 34px; }
.foot-grid { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.foot-brand img { width: 34px; height: 34px; }
.site-footer address { font-style: normal; color: var(--ink-soft); font-size: 14px; margin-top: 12px; line-height: 1.7; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); font-size: 14px; font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--indigo); }
.legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }

/* ---------- legal pages ---------- */
.doc { max-width: 780px; padding: 56px 0 72px; }
.doc h1 { font-size: 36px; letter-spacing: -.02em; margin: 0 0 8px; }
.doc .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 34px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -.01em; }
.doc p, .doc li { color: #33384d; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 7px; }
.callout {
  background: var(--yellow-soft); border: 1px solid #f3e2ad;
  border-radius: 12px; padding: 16px 18px; margin: 22px 0;
}
.callout p { margin: 0; font-size: 15px; color: #5d4a12; }

@media (max-width: 900px) {
  .hero-grid, .form-wrap { grid-template-columns: 1fr; gap: 34px; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 48px 0 40px; }
  section { padding: 52px 0; }
}
