/* =========================================================
   Summit Solar — site styles
   Colours and fonts live in :root below. Change them there.
   ========================================================= */

:root {
  --cream: #F4EEE1;
  --paper: #FCFAF5;
  --green: #1F3A2E;
  --green-deep: #172D23;
  --green-soft: #2C4A3C;
  --gold: #E0A94A;
  --gold-deep: #C88E2C;
  --gold-text: #946519;   /* gold dark enough to read as small text on cream */
  --ink: #1B2621;
  --muted: #5E6962;
  --line: #E4DCCB;
  --on-dark: #EDE8DC;
  --sage: #E6E9DD;        /* soft green band on the home page */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --logo: "Montserrat", var(--sans);

  --radius: 6px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.nowrap { white-space: nowrap; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

.eyebrow {
  font: 600 0.75rem/1 var(--logo);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1rem;
}
.split .eyebrow, .values .eyebrow { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.4em;
  border: 0; border-radius: var(--radius);
  font: 600 0.95rem/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-gold { background: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-sm { padding: 0.7em 1.1em; font-size: 0.875rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Icons ---------- */
.icon {
  width: 44px; height: 44px;
  fill: none; stroke: var(--gold-deep); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.values .icon, .quote-aside .icon { stroke: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 250, 245, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }

.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--green); line-height: 1; }
.brand-mark { width: 76px; height: auto; overflow: visible; }
.brand-name { font: 700 1.15rem/1 var(--logo); letter-spacing: 0.22em; margin: 3px -0.22em 0 0; text-transform: uppercase; }
.brand-sub { font: 500 0.55rem/1 var(--logo); letter-spacing: 0.6em; margin: 5px -0.6em 0 0; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) {
  text-decoration: none; font-size: 0.925rem; font-weight: 500;
  padding: 0.35em 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.5rem; color: var(--green); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1.25rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.85em 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { color: var(--gold-deep); border-bottom-color: var(--line); }
  .site-nav .btn { margin-top: 1rem; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background-color: var(--green-deep);
  background-image: url(../img/landscape.svg);
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,22,17,.75) 0%, rgba(12,22,17,.4) 50%, rgba(12,22,17,0) 85%);
}
.hero .container { position: relative; padding: clamp(4.5rem, 11vw, 8rem) 0; }
.hero--short .container { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.hero-copy { max-width: 36rem; }
@media (max-width: 700px) {
  .hero::before { background: linear-gradient(180deg, rgba(12,22,17,.62) 0%, rgba(12,22,17,.72) 100%); }
}
.hero h1 { margin-bottom: 0.4em; }
.hero-eyebrow { color: var(--gold); line-height: 1.6; margin-bottom: 1.25rem; }
.hero p:not(.eyebrow) { font-size: 1.125rem; max-width: 31rem; opacity: 0.94; margin-bottom: 1.75rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--cream { background: var(--cream); }
.section-head { max-width: 42rem; margin-bottom: 2.75rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--wide { max-width: 50rem; }
.section-head--wide p:not(.eyebrow) { color: #3A4540; font-size: 1rem; }
.section--tight { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.section--flush-top { padding-top: 0; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2.25rem 2rem; }
@media (min-width: 1000px) { .features--5 { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }
.feature { text-align: center; padding: 0 0.5rem; text-decoration: none; }
.feature .icon { margin: 0 auto 1rem; }
.feature h3 { font: 600 1rem/1.3 var(--sans); margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.925rem; margin: 0; }
a.feature { border-radius: 8px; padding: 1.25rem 0.75rem; transition: background-color .2s; }
a.feature:hover { background: var(--cream); }
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .features--5 .feature:last-child { grid-column: 1 / -1; }
  a.feature { padding: 0.75rem 0.25rem; }
  .feature .icon { width: 38px; height: 38px; margin-bottom: 0.75rem; }
}

/* ---------- How-it-works steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; list-style: none; padding: 0; margin: 0; }
.step { position: relative; text-align: center; }
.step .icon { margin: 0 auto 1rem; }
.step h3 { font: 600 1rem/1.3 var(--sans); margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.925rem; margin: 0; }
.step:not(:last-child)::after {
  content: "→"; position: absolute; top: 8px; right: -1.4rem;
  color: var(--gold); font-size: 1.5rem; line-height: 1;
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
}
@media (max-width: 420px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split (photo + dark green panel) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--green); color: var(--on-dark); }
.split-media {
  min-height: 420px;
  background-color: var(--green-soft);
  background-image: url(../img/landscape.svg);
  background-size: cover; background-position: center;
}
.split-body { padding: clamp(2.75rem, 6vw, 5.5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.split-body h2 { color: #fff; }
.split-body p { opacity: 0.88; max-width: 32rem; }
.split-body .btn { margin-top: 0.75rem; }
.split--reverse .split-media { order: 2; }
.split--light { background: var(--paper); color: var(--ink); }
.split--light .split-body h2 { color: var(--ink); }
.split--light .split-body p:not(.eyebrow) { opacity: 1; color: #3A4540; }
.split--light .eyebrow { color: var(--gold-text); }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 260px; }
  .split--reverse .split-media { order: 0; }
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card-media {
  aspect-ratio: 4 / 3;
  background-color: var(--green-soft);
  background-image: url(../img/landscape.svg);
  background-size: cover; background-position: center;
}
.card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card-body h3 { margin-bottom: 0.35rem; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card-meta { font-size: 0.85rem; color: var(--muted); }

/* ---------- Home: "what would you use it for" cards ---------- */
.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.use-card, .what-card {
  position: relative; text-decoration: none; border-radius: 8px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.use-card:hover, .what-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08); }
.use-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.use-media, .what-media {
  background-color: var(--green-soft);
  background-image: url(../img/landscape.svg);
  background-size: cover; background-position: center;
}
.use-media { aspect-ratio: 16 / 10; }
.use-body { flex: 1; display: grid; grid-template-columns: 30px 1fr; gap: 0.85rem; padding: 1.15rem 1.15rem 2.6rem; }
.use-body .icon { width: 30px; height: 30px; }
.use-body h3, .what-body h3 { font: 600 1rem/1.3 var(--sans); margin-bottom: 0.3rem; }
.use-body p, .what-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.card-arrow { position: absolute; right: 1rem; bottom: 0.9rem; width: 18px; height: 18px; color: var(--green); transition: transform .2s; }
.use-card:hover .card-arrow, .what-card:hover .card-arrow { transform: translateX(3px); }
@media (max-width: 980px) { .use-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .use-grid { grid-template-columns: 1fr; } .use-media { aspect-ratio: 2 / 1; } }

/* ---------- Home: soft green band of everyday uses ---------- */
.band { position: relative; background: var(--sage); padding: clamp(4.5rem, 9vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(26px, 4vw, 54px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v20c-260 34-520 38-760 18S220 6 0 34Z' fill='%23FCFAF5'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
}
.band .section-head { margin-bottom: 2.5rem; }
.band .section-head p:not(.eyebrow) { color: #3A4540; }
.things { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); row-gap: 2rem; overflow: hidden; }
.things li {
  margin-left: -1px; border-left: 1px solid rgba(31, 58, 46, 0.16);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  padding: 0.2rem 0.5rem; text-align: center; font-size: 0.85rem; line-height: 1.3;
}
.things .icon { width: 34px; height: 34px; stroke: var(--green); }
.things-note { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 2.25rem 0 0; }
@media (max-width: 1080px) { .things { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 560px) { .things { grid-template-columns: 1fr 1fr; } }

/* ---------- Home: "what we do" cards ---------- */
.what-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.what-card { display: grid; grid-template-columns: 42% 1fr; min-height: 168px; background: var(--cream); }
.what-media { border-right: 3px solid var(--gold); }
.what-body { padding: 1.25rem 1.25rem 2.6rem; }
.what-body .icon { width: 28px; height: 28px; margin-bottom: 0.4rem; }
.what-body h3 { font: 400 1.35rem/1.2 var(--serif); }
@media (max-width: 900px) { .what-grid { grid-template-columns: 1fr; } }
.extras { margin-top: 1.25rem; }
.extras .icon { width: 32px; height: 32px; margin-bottom: 0.75rem; }
.tile-link { display: inline-block; margin-top: 0.9rem; font-weight: 600; font-size: 0.9rem; color: var(--green); }

/* ---------- Home: closing photo banner ---------- */
.hero--cta h2 { color: #fff; }
.hero--cta::before { background: linear-gradient(90deg, rgba(12,22,17,.8) 0%, rgba(12,22,17,.5) 55%, rgba(12,22,17,.15) 100%); }
.hero--cta .container { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
@media (max-width: 700px) { .hero--cta::before { background: rgba(12,22,17,.7); } }

/* ---------- Text tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.tiles--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { background: var(--cream); border-radius: 8px; padding: 1.5rem 1.6rem; }
.tile h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.tile p { color: #3A4540; font-size: 0.95rem; margin: 0; }
.tile--line { background: transparent; border-top: 3px solid var(--gold); border-radius: 0; padding: 1.25rem 0 0; }
.subhead { margin: 3.5rem 0 1.5rem; font-size: 1.6rem; }

/* ---------- Roof fit cards ---------- */
.fit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.fit-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem 1.6rem; }
.fit-card h3 { margin-bottom: 1rem; }
.fit-card dl { margin: 0; display: grid; gap: 0.6rem; }
.fit-card dl div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.75rem; align-items: baseline; }
.fit-card dt { font: 600 0.7rem/1 var(--logo); letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 0.4rem; }
.fit-card dt::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: none; }
.fit-card dd { margin: 0; font-size: 0.95rem; }
.fit-ideal::before { background: #3E8E5B; }
.fit-good::before { background: var(--gold); }
.fit-poor::before { background: #B9B2A3; }
.fit-note { font-size: 0.85rem; color: var(--muted); margin: 1rem 0 0; }
.fit-card--dark { background: var(--green); border-color: var(--green); color: var(--on-dark); }
.fit-card--dark h3 { color: #fff; }
.fit-card--dark p { font-size: 0.95rem; margin: 0; opacity: 0.9; }
.source-note { margin: 2rem 0 0; font-size: 0.875rem; color: var(--muted); }
.source-note a { color: var(--green); }

/* ---------- Battery: yes / hold off ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.compare-col { border: 1px solid var(--line); border-radius: 8px; padding: 1.75rem; background: #fff; }
.compare-col:first-child { border-color: var(--gold); }
.compare-col h3 { margin-bottom: 1.25rem; }
.check-list--light { color: var(--ink); }
.dash-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; color: #3A4540; }
.dash-list li { position: relative; padding-left: 1.9rem; }
.dash-list li::before { content: ""; position: absolute; left: 0.25rem; top: 0.8em; width: 0.8rem; height: 2px; background: #B9B2A3; }
.note { margin-top: 1.5rem; padding: 1.25rem 1.5rem; background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Long-form text (privacy policy) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
.prose p, .prose li { color: #3A4540; }
.prose ul:not(.contact-list) { padding-left: 1.25rem; margin: 0 0 1em; display: grid; gap: 0.4rem; }
.prose .contact-list { margin: 0 0 1.25rem; }
.prose-meta { font-size: 0.875rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band p { max-width: 36rem; margin: 0 auto 1.75rem; color: var(--muted); font-size: 1.05rem; }

/* ---------- About ---------- */
.profile-photo {
  position: relative; aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  background: var(--green); color: var(--gold);
  font: 400 4rem/1 var(--serif);
}
/* Headshot shows over the initial once the photo file exists */
.profile-photo::after { content: ""; position: absolute; inset: 0; background: center / cover no-repeat; }
.person-hayden::after { background-image: url(../img/photos/hayden.jpg); }
.person-mike::after   { background-image: url(../img/photos/mike.jpg); }
.person-dan::after    { background-image: url(../img/photos/dan.jpg); }
.section-head p.section-tagline { font: 400 1.4rem/1.35 var(--serif); color: var(--green); margin-top: -0.25rem; }
/* Our people: photo left, name and bio right; on phones the photo sits beside the name */
.people { display: grid; gap: 1.5rem; }
.person {
  display: grid; grid-template-columns: 220px 1fr; grid-template-areas: "photo head" "photo bio";
  column-gap: 2.25rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2rem;
}
.person .profile-photo { grid-area: photo; border-radius: 6px; overflow: hidden; }
.person-head { grid-area: head; }
.person-head .profile-role { margin-bottom: 1rem; }
.person-bio { grid-area: bio; max-width: 46rem; }
.person-bio p { color: #3A4540; }
.person-bio .contact-list { margin-top: 1.25rem; font-size: 0.95rem; }
@media (max-width: 700px) {
  .person { grid-template-columns: 84px 1fr; grid-template-areas: "photo head" "bio bio"; column-gap: 1rem; padding: 1.25rem; }
  .person .profile-photo { font-size: 2.25rem; }
  .person-head { align-self: center; }
  .person-head h3 { font-size: 1.2rem; }
  .person-head .profile-role { margin-bottom: 0; }
  .person-bio { margin-top: 1rem; }
}

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.2rem; height: 1.2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0A94A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.profile-role { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.contact-list a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; overflow-wrap: break-word; }
.contact-list a:hover { text-decoration: underline; }
.contact-list .icon { width: 20px; height: 20px; flex: none; }

.values { background: var(--green); color: var(--on-dark); }
.values h2, .values .feature h3 { color: #fff; }
.values .feature p { color: rgba(237, 232, 220, 0.75); }

/* ---------- Quote form ---------- */
.quote-layout {
  display: grid; grid-template-columns: 1.65fr 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.quote-form { padding: clamp(1.5rem, 4vw, 3rem); }
.quote-aside { background: var(--green); color: var(--on-dark); padding: clamp(1.75rem, 4vw, 3rem); }
.quote-aside h2 { color: #fff; font-size: 1.8rem; }
.quote-aside h3 { color: #fff; margin-top: 2.5rem; }
.quote-aside .contact-list a { color: var(--on-dark); }
.aside-name { font-weight: 600; margin-bottom: 0; color: #fff; }
.aside-role { font-size: 0.9rem; opacity: 0.75; margin-bottom: 1rem; }
.area-list { list-style: none; padding: 0; margin: 0; }
.area-list li { padding: 0.15rem 0; }
.area-list strong { color: var(--gold); font-weight: 600; }
@media (max-width: 860px) { .quote-layout { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid .field { grid-column: 1 / -1; } .form-grid .field--pair { grid-column: auto; } }

label, legend { font-size: 0.875rem; font-weight: 600; }
.req { color: var(--gold-text); }
input, select, textarea {
  width: 100%;
  font: inherit; font-size: 0.95rem;
  padding: 0.7em 0.85em;
  color: var(--ink); background: var(--paper);
  border: 1px solid #D6CDBA; border-radius: var(--radius);
}
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.5em;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6962' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.8em center / 1.1em no-repeat;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 0.6rem; }
.checks label { display: flex; align-items: center; gap: 0.45rem; font-weight: 400; }
.checks input { width: auto; accent-color: var(--gold-deep); }
.address-field { position: relative; }
.address-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  margin: 0.25rem 0 0; padding: 0.3rem 0; list-style: none;
  background: #fff; border: 1px solid #D6CDBA; border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.address-list li { padding: 0.6rem 0.85rem; font-size: 0.95rem; cursor: pointer; }
.address-list li:hover, .address-list li[aria-selected="true"] { background: var(--cream); }
.address-list .address-credit { cursor: default; font-size: 0.75rem; color: var(--muted); text-align: right; padding-top: 0.3rem; }
.address-list .address-credit:hover { background: none; }
.form-privacy { font-size: 0.8rem; color: var(--muted); margin: 1rem 0 0; }
.form-privacy a, .prose a { color: var(--green); }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hp { display: none !important; }

.form-status { display: none; margin-top: 1.25rem; padding: 0.9rem 1rem; border-radius: var(--radius); }
.form-status.is-success { display: block; background: #E7F1E9; color: #1F4D32; }
.form-status.is-error { display: block; background: #FBEAEA; color: #8A2525; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(237, 232, 220, 0.8); padding: 3.5rem 0 1.5rem; font-size: 0.925rem; }
.site-footer .brand { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2rem; }
.footer-tag { margin-top: 1.25rem; max-width: 20rem; }
.footer-heading { font: 600 0.75rem/1 var(--logo); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0.5rem 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  margin-top: 2.75rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.825rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   PHOTOS
   Drop a .jpg with the matching name into assets/img/photos/
   and it appears automatically. Until then, the illustrated
   landscape shows instead. Landscape photos ~2000px wide work best.
   ========================================================= */
.ph-home-hero       { background-image: url(../img/photos/home-hero.jpg), url(../img/landscape.svg); }
.ph-home-why        { background-image: url(../img/photos/home-why.jpg), url(../img/landscape.svg); }
.ph-solar-hero      { background-image: url(../img/photos/solar-hero.jpg), url(../img/landscape.svg); }
.ph-solar-right     { background-image: url(../img/photos/solar-right.jpg), url(../img/landscape.svg); }
.ph-battery-hero    { background-image: url(../img/photos/battery-hero.jpg), url(../img/landscape.svg); }
.ph-battery-combo   { background-image: url(../img/photos/battery-combo.jpg), url(../img/landscape.svg); }
.ph-home-cta        { background-image: url(../img/photos/home-cta.jpg), url(../img/landscape.svg); }
.ph-high-energy     { background-image: url(../img/photos/high-energy-home.jpg), url(../img/landscape.svg); }
.ph-family          { background-image: url(../img/photos/family-homes.jpg), url(../img/landscape.svg); }
.ph-lifestyle       { background-image: url(../img/photos/lifestyle-properties.jpg), url(../img/landscape.svg); }
.ph-business        { background-image: url(../img/photos/small-business.jpg), url(../img/landscape.svg); }
.ph-rural           { background-image: url(../img/photos/rural.jpg), url(../img/landscape.svg); }
.ph-ev              { background-image: url(../img/photos/ev-charging.jpg), url(../img/landscape.svg); }
.ph-about-hero      { background-image: url(../img/photos/about-hero.jpg), url(../img/landscape.svg); }
.ph-quote-hero      { background-image: url(../img/photos/quote-hero.jpg), url(../img/landscape.svg); }

/* Web designer credit under the footer */
.site-credit {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem; color: rgba(237, 232, 220, 0.75);
}
.site-credit strong { color: #fff; font-weight: 600; }
.credit-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.credit-contact a { color: rgba(237, 232, 220, 0.75); }
.credit-contact a:hover { color: #fff; }
.site-footer .credit-cta {
  display: inline-block; padding: 0.45em 1em;
  border: 1px solid rgba(224, 169, 74, 0.7); border-radius: 999px;
  color: var(--gold); font-weight: 600;
  transition: background-color .2s, color .2s;
}
.site-footer .credit-cta:hover { background: var(--gold); color: var(--green-deep); }
