/* Sunbeam Solar and Electrical Solutions demo. Type-led. Lora + Commissioner.
   Palette from the logo: deep green, copper, ray orange, on a bone cream surface. */
:root {
  --cream: #f4f6ef;
  --bg: #edf1ea;
  --paper: #f7f9f4;
  --ink: #13201a;
  --green: #0d3e1d;
  --copper: #a8501a;
  --ray: #e08f3e;
  --ash: #55584f;
  --rule: rgba(19, 32, 26, 0.28);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--cream); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* header */
.hd { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--rule); }
.hd__in { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark { width: 40px; height: 44px; flex: none; }
.brand__t { display: flex; flex-direction: column; line-height: 1; }
.brand__n { font: 500 28px/1 var(--serif); letter-spacing: -0.015em; color: var(--green); }
.brand__s { font: 500 12px/1.3 var(--sans); color: var(--ash); margin-top: 4px; }
.nav { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-weight: 500; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--copper); }
.hd__call { background: var(--green); color: var(--cream); text-decoration: none; font-weight: 700; padding: 12px 24px; min-height: 48px; display: inline-flex; align-items: center; transition: background .15s; }
.hd__call:hover { background: var(--copper); }
.burger { display: none; width: 48px; height: 48px; background: none; border: 1px solid var(--rule); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }
.drawer { display: none; }
.drawer[hidden] { display: none; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; min-height: 56px; padding: 16px 32px; background: var(--green); color: var(--cream); font-weight: 700; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--copper); }
.tlink { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--copper); display: inline-block; padding: 12px 0; }
.tlink:hover { color: var(--copper); }
.tlink--cream { color: var(--cream); text-decoration-color: var(--ray); }
.tlink--cream:hover { color: var(--ray); }

/* type */
.lede { font-size: 20px; line-height: 1.55; max-width: 36em; }
.sec { font: 500 clamp(26px, 3vw, 40px)/1.15 var(--serif); letter-spacing: -0.015em; color: var(--green); padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.big { font: 500 clamp(34px, 4.4vw, 64px)/1.08 var(--serif); letter-spacing: -0.02em; color: var(--green); }
.big--cream { color: var(--cream); }
.page__h { font: 500 clamp(42px, 7vw, 112px)/1 var(--serif); letter-spacing: -0.03em; color: var(--green); max-width: 12em; }
.phead { padding-top: 88px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 32px; }

/* hero */
.hero { padding-top: 72px; padding-bottom: 0; }
.hero__h { font: 500 clamp(40px, 7vw, 100px)/1.05 var(--serif); letter-spacing: -0.035em; color: var(--green); max-width: 13em; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: end; margin-top: 48px; border-bottom: 1px solid var(--ink); }
.hero__copy { padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; }
.hero__hours { color: var(--ash); font-weight: 500; }
.hero__sun { align-self: end; margin-bottom: -1px; }
.crown { display: block; width: 100%; max-width: 520px; height: auto; margin-left: auto; }

/* photo + statement (offset) */
.band { padding: 96px 0; }
.band--photo { padding-top: 96px; }
.offset { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.offset__ph img { width: 100%; }
.offset figcaption, .svc figcaption, .batt figcaption, .gal figcaption, .about2 figcaption { font: 500 14px/1.4 var(--sans); color: var(--ash); padding-top: 12px; }
.offset__tx { display: flex; flex-direction: column; gap: 24px; padding-bottom: 32px; }

/* service rows */
.list { padding-top: 32px; padding-bottom: 96px; }
.row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: color .15s; }
.row:hover { color: var(--copper); }
.row:hover .row__t { transform: translateX(16px); }
.row__t { font: 500 clamp(32px, 4.8vw, 72px)/1.05 var(--serif); letter-spacing: -0.03em; color: var(--green); transition: transform .2s, color .15s; }
.row:hover .row__t { color: var(--copper); }
.row__d { font-size: 18px; max-width: 24em; }

/* batteries band */
.band--green { background: var(--green); color: var(--cream); }
.batt__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.batt__tx { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 112px; }
.batt__tx p { max-width: 28em; }
.batt__ph { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.batt__ph figure:nth-child(2) { margin-top: 64px; }
.batt figcaption { color: rgba(246, 241, 230, 0.78); }

/* quotes */
.quotes { padding-top: 96px; padding-bottom: 96px; }
.q { margin: 0; padding: 48px 0; border-bottom: 1px solid var(--rule); }
.q p { font: italic 400 clamp(26px, 3.4vw, 52px)/1.36 var(--serif); letter-spacing: -0.015em; color: var(--green); max-width: 22em; }
.q cite { display: block; margin-top: 16px; font: 500 15px/1.4 var(--sans); font-style: normal; color: var(--ash); }
.rate { padding-top: 32px; font-weight: 500; color: var(--ash); }

/* CTA */
.band--cta { background: var(--paper); border-top: 1px solid var(--ink); }
.cta { display: flex; flex-direction: column; gap: 16px; }
.cta__h { font: 500 clamp(28px, 3.2vw, 48px)/1.1 var(--serif); color: var(--ash); }
.cta__tel { font: 500 clamp(36px, 10.4vw, 168px)/1 var(--serif); letter-spacing: -0.04em; color: var(--green); text-decoration: none; display: inline-block; padding: 8px 0; }
.cta__tel:hover { color: var(--copper); }
.cta__tel--page { align-self: flex-start; }

/* services page */
.svc { padding-top: 64px; padding-bottom: 96px; border-top: 1px solid var(--ink); scroll-margin-top: 96px; }
.svc__h { font: 500 clamp(36px, 5.6vw, 88px)/1.02 var(--serif); letter-spacing: -0.03em; color: var(--green); }
.svc p { max-width: 34em; }
.svc__wide { margin: 40px 0 32px; }
.svc__wide img { width: 100%; height: clamp(280px, 40vw, 560px); object-fit: cover; object-position: 50% 75%; }
.svc__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.svc--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.svc--split .svc__tx, .svc--pair .svc__tx { display: flex; flex-direction: column; gap: 24px; }
.svc__side img { width: 100%; max-height: 720px; object-fit: cover; object-position: 50% 60%; }
.svc--pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); gap: 32px; align-items: start; }
.svc--pair figure:last-child { margin-top: 96px; }
.svc--pair img { width: 100%; }
.svc--type { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.svc__big { font: 400 clamp(24px, 3vw, 44px)/1.36 var(--serif); color: var(--ink); max-width: 20em; }

/* about */
.topics { padding-bottom: 96px; }
.topics__note { padding: 16px 0 24px; color: var(--ash); }
.topics__l div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.topics__l dt { font: 500 clamp(26px, 4vw, 56px)/1.1 var(--serif); color: var(--green); letter-spacing: -0.025em; }
.topics__l dd { font: 500 clamp(44px, 7vw, 112px)/1 var(--serif); color: var(--copper); letter-spacing: -0.04em; }
.about2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: end; padding-bottom: 96px; }
.about2__ph img { width: 100%; }
.about2__tx { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.about2__tx p { max-width: 28em; }

/* gallery (staggered, two columns, no card grid) */
.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; padding-bottom: 96px; align-items: start; }
.gal__i img { width: 100%; }
.gal__i--w { grid-column: span 8; }
.gal__i--t { grid-column: span 5; }
.gal__i--s { grid-column: span 4; }
.gal__i:nth-child(2) { grid-column: 9 / span 4; margin-top: 96px; }
.gal__i:nth-child(3) { grid-column: 2 / span 5; }
.gal__i:nth-child(4) { grid-column: 7 / span 6; margin-top: 64px; }
.gal__i:nth-child(5) { grid-column: 1 / span 4; }
.gal__i:nth-child(6) { grid-column: 6 / span 3; margin-top: 48px; }

/* contact + faq */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding-bottom: 96px; }
.contact__c p { padding-top: 8px; }
.faq { padding-bottom: 120px; }
.faq__l { margin-top: 32px; }
details { border-bottom: 1px solid var(--rule); }
details:first-child { border-top: 1px solid var(--ink); }
summary { list-style: none; cursor: pointer; padding: 24px 56px 24px 0; font: 500 clamp(20px, 2.4vw, 30px)/1.25 var(--serif); letter-spacing: -0.01em; color: var(--green); position: relative; min-height: 64px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 16px; font: 400 36px/1 var(--serif); color: var(--copper); }
details[open] summary::after { content: "\2212"; }
summary:hover { color: var(--copper); }
details p { padding: 0 56px 32px 0; max-width: 40em; }

/* footer */
.ft { background: var(--green); color: var(--cream); }
.rays { height: 24px; background: var(--bg); position: relative; }
.rays::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cpath d='M0 24L24 0L48 24Z' fill='%230d3e1d'/%3E%3C/svg%3E") repeat-x bottom left / 48px 24px; }
.ft__body { padding-top: 64px; }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; }
.ft__brand p { margin-top: 16px; }
.brand--ft .brand__n { color: var(--cream); }
.brand--ft .brand__s { color: rgba(246, 241, 230, 0.78); }
.brand--ft .mark path[stroke="#0d3e1d"] { stroke: var(--cream); }
.ft__phone { font: 500 34px/1 var(--serif); letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.ft__phone:hover { color: var(--ray); }
.ft__hours { color: rgba(246, 241, 230, 0.78); }
.ft__h { font: 700 16px/1.4 var(--sans); color: var(--cream); margin-bottom: 16px; }
.ft li a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; text-decoration: none; }
.ft li a:hover { color: var(--ray); text-decoration: underline; }
.ft__rate { margin-top: 16px; color: rgba(246, 241, 230, 0.78); }
.ft__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(246, 241, 230, 0.28); font-size: 15px; color: rgba(246, 241, 230, 0.78); }
.ft__base a { text-decoration: underline; display: inline-flex; align-items: center; min-height: 48px; }

/* tablet and down */
@media (max-width: 1023px) {
  .nav, .hd__call { display: none; }
  .burger { display: inline-flex; }
  .drawer:not([hidden]) { display: block; border-top: 1px solid var(--rule); background: var(--cream); }
  .drawer nav { display: flex; flex-direction: column; padding: 8px var(--gut) 24px; }
  .drawer a { text-decoration: none; font: 500 28px/1.1 var(--serif); padding: 16px 0; border-bottom: 1px solid var(--rule); min-height: 56px; color: var(--green); }
  .drawer a[aria-current="page"] { color: var(--copper); }
  .drawer .drawer__call { margin-top: 24px; background: var(--green); color: var(--cream); font: 700 18px/1.2 var(--sans); padding: 16px 24px; text-align: center; border: 0; }
  .hero__row { grid-template-columns: 1fr; gap: 0; }
  .hero__copy { padding-bottom: 32px; }
  .hero__sun { max-width: 360px; margin-left: auto; }
  .offset, .batt__in, .about2, .svc--split { grid-template-columns: 1fr; gap: 40px; }
  .batt__tx { position: static; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .svc__cols, .contact { grid-template-columns: 1fr; gap: 24px; }
  .svc--pair { grid-template-columns: 1fr 1fr; }
  .svc--pair .svc__tx { grid-column: 1 / -1; }
  .svc--pair figure:last-child { margin-top: 48px; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .gal__i, .gal__i:nth-child(n) { grid-column: auto; margin-top: 0; }
  .gal__i--w { grid-column: 1 / -1; }
  .gal__i:nth-child(4) { grid-column: 1 / -1; }
  .ft__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .hd__in { min-height: 72px; gap: 16px; }
  .brand__n { font-size: 28px; }
  .brand__s { font-size: 11px; }
  .hero { padding-top: 48px; }
  .hero__row { margin-top: 32px; }
  .band, .band--photo, .quotes, .list { padding-top: 64px; padding-bottom: 64px; }
  .phead { padding-top: 56px; padding-bottom: 40px; }
  .svc { padding-top: 48px; padding-bottom: 64px; }
  .batt__ph { gap: 16px; }
  .batt__ph figure:nth-child(2) { margin-top: 32px; }
  .svc--pair { grid-template-columns: 1fr; }
  .svc--pair figure:last-child { margin-top: 0; }
  .gal { grid-template-columns: 1fr; }
  .gal__i, .gal__i:nth-child(n) { grid-column: 1 / -1; }
  .ft__grid { grid-template-columns: 1fr; gap: 32px; }
  .ft__base { flex-direction: column; }
  summary { padding-right: 48px; }
  details p { padding-right: 0; }
  .btn { width: 100%; justify-content: center; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 0; }
  .hero__ctas .tlink { text-align: center; }
  .about2__tx .btn, .svc--type .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
