:root {
  --ink: #273b42;
  --deep: #1f3036;
  --muted: #52605f;
  --cream: #f8f4eb;
  --paper: #fffcf6;
  --accent: #e29a63;
  --accent-hover: #edac7a;
  --line: #ddd6c8;
  --serif: 'Baskervville', Georgia, serif;
  --sans: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.55 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #885027; outline-offset: 4px; }

.wrap { width: min(100% - clamp(2rem, 8vw, 8rem), 80rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; top: .5rem; left: 1rem; padding: .65rem 1rem; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-content, .footer-content { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.header-content { min-height: 5.375rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand img { width: clamp(9rem, 19vw, 12.5rem); height: auto; }
nav { display: flex; align-items: center; gap: clamp(.7rem, 3vw, 2.25rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
nav a:hover { text-decoration: underline; text-underline-offset: .28em; }
.nav-quote { padding-inline: .9rem; border: 1px solid #9d7357; border-radius: .4rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 5vw, 4.5rem); margin-top: clamp(1.75rem, 4vw, 3.5rem); }
.hero-copy { align-self: center; padding-block: clamp(.75rem, 3.5vw, 3rem); }
.hero h1 { font-size: clamp(3rem, 5.4vw, 5.5rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy p { max-width: 33ch; margin-top: 1.2rem; color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.3rem); }
.hero .button { margin-top: 1.5rem; padding-inline: 1.4rem; border-radius: .65rem; background: #d5864e; }
.hero .button:hover { background: var(--accent); }
.hero-photo { width: 100%; height: 100%; min-height: clamp(24rem, 37vw, 33rem); object-fit: cover; object-position: center top; border-radius: 1rem; background: #9baab0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 1.15rem; min-height: 3.25rem; padding: .66rem 1.15rem; border: 1px solid transparent; border-radius: .44rem; background: var(--accent); color: var(--deep); font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-hover); }
.text-link { display: inline-flex; gap: .35rem; align-items: center; min-height: 44px; font-weight: 650; text-decoration-thickness: .075em; text-underline-offset: .22em; }

.section { padding-block: clamp(3rem, 8vw, 7.5rem); }
.solutions { padding-bottom: 0; }
.section-heading { display: grid; grid-template-columns: 1fr .66fr; gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(1.4rem, 3.2vw, 2.7rem); }
.section-heading .intro { margin-top: 0; }
.solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.8vw, 2.4rem); }
.solution { background: var(--paper); border: 1px solid var(--line); border-radius: .85rem; }
.solution img { width: 100%; height: auto; aspect-ratio: 2.05; object-fit: cover; object-position: center 70%; border-radius: .8rem .8rem 0 0; }
.solution img.battery-photo { object-position: center 43%; }
.solution-copy { padding: clamp(1.1rem, 2.65vw, 2rem); }
.solution-copy h3 { font: 400 clamp(1.7rem, 3vw, 2.45rem)/1.1 var(--serif); }
.solution-copy p { color: var(--muted); margin-top: .5rem; }
.photo-credit { display: inline-block; margin-top: .65rem; font-size: .85rem; }
.process, .quote-content, .faq { display: grid; gap: clamp(2rem, 6vw, 6rem); }
.process { grid-template-columns: 1.15fr .85fr; align-items: start; }
.intro { margin-top: 1.15rem; max-width: 41ch; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.23rem); }
.steps { padding: 0; margin: 2rem 0 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: '0' counter(step); font-weight: 700; color: #87502d; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin-top: .28rem; }
.process-photo { position: relative; align-self: stretch; min-height: 22rem; }
.process-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; border-radius: .85rem; }
.process-photo figcaption { position: absolute; bottom: .85rem; left: .85rem; max-width: calc(100% - 1.7rem); padding: .38rem .65rem; border-radius: .3rem; background: var(--deep); color: var(--paper); font-size: .83rem; }

.quote-section { background: #efe7d9; padding-block: clamp(3rem, 7vw, 6.4rem); }
.quote-content { grid-template-columns: .85fr 1.15fr; }
.quote-example { margin: 1.4rem 0 .4rem; padding-left: .9rem; border-left: 3px solid #a96032; }
.quote-form, .quote-draft { display: flex; flex-direction: column; padding: clamp(1.05rem, 3.8vw, 2.35rem); background: var(--paper); border: 1px solid var(--line); border-radius: .85rem; }
.quote-draft { margin-top: 1rem; }
.quote-form label, .quote-draft label { font-weight: 700; }
.quote-form input, .quote-draft textarea { width: 100%; min-height: 3.15rem; margin-top: .35rem; padding: .65rem .75rem; color: var(--deep); background: white; border: 1px solid #8c918b; border-radius: .33rem; }
.quote-form label + input:not(:last-of-type) { margin-bottom: 1.05rem; }
.quote-form .button { align-self: start; margin-top: 1.3rem; }
.quote-draft textarea { resize: vertical; }
#message-instructions { margin: .25rem 0 .45rem; color: var(--muted); }
.draft-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: .85rem; }
#copy-status:not(:empty) { margin-top: .6rem; }

.faq { grid-template-columns: .85fr 1.15fr; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding-block: 1rem; font-weight: 700; }
details p { color: var(--muted); padding: 0 0 1rem; }
footer { border-top: 1px solid var(--line); padding-block: 1rem; }
.footer-content { flex-wrap: wrap; }

@media (max-width: 43rem) {
  .header-content { min-height: 4.55rem; }
  .hero, .section-heading, .solution-grid, .process, .quote-content, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-block: 0; }
  .hero-photo { min-height: 0; height: auto; aspect-ratio: 1.55; object-position: 54% 18%; }
  .process-photo { min-height: 15rem; }
  .quote-form .button { align-self: stretch; }
}

@media (max-width: 36rem) {
  .header-content { flex-wrap: wrap; justify-content: center; gap: 0; padding-bottom: .45rem; }
  nav { flex-basis: 100%; justify-content: space-between; gap: .45rem; }
  nav a { font-size: .9rem; }
  .nav-quote { padding-inline: .5rem; }
}

@media (max-width: 24rem) {
  .brand img { width: 8rem; }
  nav a { font-size: .86rem; }
  .hero h1 { font-size: 2.76rem; }
}
