/* ERA Porch Pickups: simple, calm, blue and green. Every rule is scoped to #era-porch. */
#era-porch {
  --erp-ink: #142c3d; --erp-muted: #4d6170; --erp-line: #d5e0e4; --erp-tint: #eef5f7;
  --erp-blue: #006b9f; --erp-blue-dk: #075279; --erp-green: #65a52d; --erp-green-dk: #3f6b1c;
  --erp-gutter: max(20px, 5%, calc((100% - 1120px) / 2));
  --erp-head: 158px; /* site header height; porch.js replaces this with the measured value */
  display: block; width: auto; max-width: none; margin: 0; padding: 0;
  background: #fff; color: var(--erp-ink); font-size: 17px; line-height: 1.6; text-align: left;
}
#era-porch *, #era-porch *::before, #era-porch *::after { box-sizing: border-box; }
#era-porch h1, #era-porch h2, #era-porch h3, #era-porch p, #era-porch ol, #era-porch li, #era-porch figure { margin: 0; padding: 0; }
#era-porch h1, #era-porch h2, #era-porch h3 { color: var(--erp-ink); font-family: inherit; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; text-transform: none; text-wrap: balance; }
#era-porch h1 { font-size: clamp(38px, 4.2vw, 84px); }
#era-porch h2 { font-size: clamp(26px, 3vw, 34px); }
#era-porch h3 { font-size: 20px; }
#era-porch a { color: var(--erp-blue); text-decoration: underline; text-underline-offset: 3px; }
#era-porch a:hover { color: var(--erp-blue-dk); }
#era-porch a:focus-visible, #era-porch summary:focus-visible { outline: 3px solid var(--erp-blue); outline-offset: 3px; }

/* Sections below the hero share one gutter so the edges line up. */
#era-porch .erp-steps, #era-porch .erp-reg, #era-porch .erp-faq { padding: 56px var(--erp-gutter); }
#era-porch .erp-reg, #era-porch .erp-faq { display: grid; gap: 56px; }
#era-porch .erp-reg, #era-porch .erp-faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }

/* Hero: the porch photo fills the first screen below the site header, edge to edge at any width.
   Desktop: the text sits on the photo's clear siding at the left, so the door, plant and electronics stay
   uncovered. The photo, text and caption share one grid cell (no positioning, so nothing can ride over the
   header). The photo adds no height of its own (height: 0 + min-height: 100%), so the hero is exactly the
   viewport minus the header, and only grows if its content needs more room. */
#era-porch .erp-hero { --erp-inset: clamp(20px, 5vw, 120px); display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); min-height: max(440px, calc(100vh - var(--erp-head))); min-height: max(440px, calc(100svh - var(--erp-head))); }
#era-porch .erp-photo { display: contents; }
#era-porch .erp-photo img { grid-area: 1 / 1; order: -1; display: block; width: 100%; height: 0; min-height: 100%; object-fit: cover; object-position: 82% 65%; background: #e9e2d2; }
#era-porch .erp-photo figcaption { grid-area: 1 / 1; align-self: end; justify-self: start; max-width: min(calc(40% - var(--erp-inset)), 460px); margin: 0 0 24px var(--erp-inset); padding: 8px 14px; border-radius: 3px; background: rgba(255, 255, 255, .86); color: var(--erp-muted); font-size: 14px; line-height: 1.4; }
#era-porch .erp-intro { grid-area: 1 / 1; align-self: center; max-width: min(40%, 820px); padding: 0 0 56px var(--erp-inset); }
#era-porch h1::before { content: ""; display: block; width: clamp(48px, 1.9vw, 72px); height: 4px; margin-bottom: 20px; border-radius: 2px; background: var(--erp-green); }
#era-porch .erp-lead { max-width: 30em; margin: 20px 0 28px; font-size: clamp(19px, 1.35vw, 26px); }
#era-porch .erp-btn { display: inline-block; padding: .85em 1.7em; border-radius: 4px; background: var(--erp-blue); color: #fff; font-size: clamp(16px, 1.05vw, 20px); font-weight: 700; line-height: 1.3; text-decoration: none; }
#era-porch .erp-btn:hover { background: var(--erp-blue-dk); color: #fff; }

/* Three steps */
#era-porch .erp-steps { border-top: 1px solid var(--erp-line); }
#era-porch .erp-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 28px; list-style: none; counter-reset: erp; }
#era-porch .erp-steps li { position: relative; counter-increment: erp; }
#era-porch .erp-steps li::before { content: counter(erp); content: counter(erp) / ""; position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--erp-green); border-radius: 50%; background: #eef6e6; color: var(--erp-green-dk); font-size: 16px; font-weight: 700; line-height: 1; }
#era-porch .erp-steps h3 { display: flex; align-items: center; min-height: 36px; padding-left: 48px; }
#era-porch .erp-steps p { margin-top: 10px; color: var(--erp-muted); font-size: 16px; }

/* Collection area: notice + coming-soon card or the request form */
#era-porch .erp-reg { background: var(--erp-tint); scroll-margin-top: 96px; }
#era-porch .erp-reg-text p { margin-top: 14px; color: var(--erp-muted); font-size: 16px; }
#era-porch .erp-reg-text .erp-warn { margin-top: 22px; padding: 14px 16px; border-left: 4px solid var(--erp-green); background: #fff; color: var(--erp-ink); font-size: 15px; line-height: 1.55; }
#era-porch .erp-card { padding: 36px 36px 32px; border: 1px solid var(--erp-line); border-radius: 6px; background: #fff; box-shadow: inset 0 4px 0 var(--erp-green); }
#era-porch .erp-card h3 { font-size: clamp(24px, 2.6vw, 30px); }
#era-porch .erp-card p { margin-top: 14px; color: var(--erp-muted); }
#era-porch .erp-card .erp-sooner { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--erp-line); font-size: 16px; }
#era-porch .erp-panel iframe { display: block; width: 100%; min-height: 450px; border: 0; border-radius: 6px; background: #fff; }
#era-porch .erp-form-help { margin-top: 12px; color: var(--erp-muted); font-size: 14px; }

/* FAQ */
#era-porch .erp-faq { padding-bottom: 64px; }
#era-porch .erp-faq details { border-bottom: 1px solid var(--erp-line); }
#era-porch .erp-faq details:first-child { border-top: 1px solid var(--erp-line); }
#era-porch .erp-faq summary { position: relative; display: block; padding: 18px 36px 18px 0; font-weight: 700; line-height: 1.4; list-style: none; cursor: pointer; }
#era-porch .erp-faq summary::-webkit-details-marker { display: none; }
#era-porch .erp-faq summary::after { content: ""; position: absolute; top: 50%; right: 6px; width: 9px; height: 9px; margin-top: -7px; border: solid var(--erp-blue); border-width: 0 2px 2px 0; transform: rotate(45deg); }
#era-porch .erp-faq details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
#era-porch .erp-faq details p { margin-top: -6px; padding: 0 36px 20px 0; color: var(--erp-muted); font-size: 16px; }
#era-porch .erp-faq .erp-more { margin-top: 20px; color: var(--erp-muted); font-size: 16px; }

/* Phones, tablets and tall or narrow windows: photo (takes the spare height), caption, then the text on
   plain white. The photo is cropped from the left so the door, plant, box and monitor stay in view. */
@media (max-width: 900px), (max-aspect-ratio: 17/10) {
  #era-porch .erp-hero { grid-template-rows: minmax(240px, 1fr) auto auto; min-height: max(560px, calc(100vh - var(--erp-head))); min-height: max(560px, calc(100svh - var(--erp-head))); }
  #era-porch .erp-photo img { object-position: 85% 60%; }
  #era-porch .erp-photo figcaption { grid-area: 2 / 1; align-self: start; justify-self: stretch; max-width: none; margin: 0; padding: 12px var(--erp-inset) 0; border-radius: 0; background: none; }
  #era-porch .erp-intro { grid-area: 3 / 1; align-self: start; max-width: none; padding: 16px var(--erp-inset) 36px; }
}
@media (max-width: 900px) {
  #era-porch { --erp-head: 74px; }
  #era-porch .erp-reg, #era-porch .erp-faq { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #era-porch .erp-steps ol { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  #era-porch { font-size: 16px; }
  #era-porch .erp-steps, #era-porch .erp-reg, #era-porch .erp-faq { padding-top: 36px; padding-bottom: 40px; }
  /* Leave room for ERA's existing floating chat graphic and button on phones. */
  #era-porch .erp-intro { padding-bottom: 200px; }
  #era-porch .erp-lead { font-size: 17px; }
  #era-porch .erp-btn { display: block; text-align: center; }
  #era-porch .erp-card { padding: 30px 20px 24px; }
  #era-porch .erp-faq summary { padding-right: 30px; }
  #era-porch .erp-faq details p { padding-right: 0; }
}
