/* SolarMechanicCo — one stylesheet for the whole site.
   Brand colors carried over from the January version. */
:root {
  --navy: #102A43;
  --slate: #475A6B;
  --gold: #F5A623;
  --gold-dark: #D98B0B;
  --paper: #FFFFFF;
  --mist: #F4F7FA;
  --rule: #DCE3EA;
  --ok: #1F7A4D;
  --radius: 12px;
  --wrap: 68rem;
  --gutter: 1.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--slate);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
a { color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem; z-index: 10; }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--navy); text-decoration: none; font-size: 1.15rem; }
.logo svg { width: 28px; height: 28px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem; min-height: 3rem; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--mist); }
.btn-sm { padding: .5rem 1rem; min-height: 2.5rem; font-size: .95rem; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--mist), var(--paper)); padding: 4rem 0 3rem; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.hero .lead { font-size: 1.15rem; max-width: 36rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 10px 30px rgba(16, 42, 67, .08);
}
.hero-card h3 { margin-bottom: 1rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 1.25rem; height: 1.25rem; margin-top: .2rem; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23102A43' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.3fr 1fr; } }

/* ---------- sections ---------- */
section { padding: 4rem 0; }
.alt { background: var(--mist); }
.intro { max-width: 40rem; margin-bottom: 2rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem; }
.card p { margin: 0; }
.icon {
  width: 2.75rem; height: 2.75rem; border-radius: 10px; background: #FEF3DF;
  display: grid; place-items: center; margin-bottom: .9rem;
}
.icon svg { width: 1.5rem; height: 1.5rem; stroke: var(--navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--navy); color: var(--paper); font-weight: 800; margin-bottom: .75rem;
}

.brands { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; padding: 0; list-style: none; }
.brands li { border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; color: var(--navy); font-size: .95rem; }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-dark); }
details[open] summary::after { content: "–"; }
details p { margin: .75rem 0 0; }
.faq > * { max-width: 46rem; }

/* ---------- quote form ---------- */
.quote .wrap { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .quote .wrap { grid-template-columns: 1fr 1.3fr; } }
form { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; }
.row { display: grid; gap: 1rem; }
@media (min-width: 36rem) { .row { grid-template-columns: 1fr 1fr; } }
label { display: grid; gap: .35rem; font-weight: 600; color: var(--navy); font-size: .95rem; }
label .opt { font-weight: 400; color: var(--slate); }
input, select, textarea {
  font: inherit; color: var(--navy); padding: .7rem .8rem; border: 1px solid #B8C4D0;
  border-radius: 8px; background: var(--paper); width: 100%; min-height: 3rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(245, 166, 35, .45); border-color: var(--gold-dark); }
.hidden { display: none; }
.fine { font-size: .9rem; margin: 0; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: #C9D4DF; padding: 2rem 0; font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer a { color: var(--paper); }

/* ---------- thank-you page ---------- */
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.thanks .badge { width: 4rem; height: 4rem; border-radius: 50%; background: var(--ok); display: grid; place-items: center; margin: 0 auto 1.25rem; }
.thanks .badge svg { width: 2rem; height: 2rem; stroke: var(--paper); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
