/*
 * Evergreen Projects.
 * Colours and fonts follow the Evergreen Roofing brand guide and inherit the site's
 * Elementor global settings, so a change to the site's brand settings carries through.
 *   Primary  #223827  #496b36  #B9D4E5      Secondary  #FFFFFF  #D6D6D6
 *   CS Gordon for headings, FF Scala for subheads and body copy.
 */
.erp {
  --erp-primary: var(--e-global-color-primary, #223827);
  --erp-secondary: var(--e-global-color-secondary, #496b36);
  --erp-accent: var(--e-global-color-accent, #b9d4e5);
  --erp-text: var(--e-global-color-text, #000);
  --erp-white: #fff;
  --erp-grey: #d6d6d6;
  --erp-tint: #f1f1f1;
  --erp-display: var(--e-global-typography-primary-font-family, "CS GORDON"), sans-serif;
  --erp-body: var(--e-global-typography-text-font-family, "FF Scala"), sans-serif;
  font-family: var(--erp-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--erp-text);
  background: var(--erp-white);
}
.erp *, .erp *::before, .erp *::after { box-sizing: border-box; }
.erp-wrap { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.erp h1, .erp h2, .erp h3 { margin: 0; font-family: var(--erp-display); font-weight: 600; text-transform: uppercase; text-wrap: balance; }
.erp h1 { font-size: clamp(25px, 3.4vw, 36px); line-height: 1.2; color: var(--erp-accent); }
.erp h2 { font-size: clamp(20px, 2.8vw, 32px); line-height: 1.25; color: var(--erp-primary); }
.erp h3 { font-size: 20px; line-height: 1.35; color: var(--erp-secondary); }
.erp p { margin: 0; }
.erp a { color: var(--erp-primary); }
.erp a:focus-visible, .erp button:focus-visible, .erp select:focus-visible, .erp summary:focus-visible { outline: 3px solid var(--erp-secondary); outline-offset: 2px; }

/* Page heading band: same treatment as the site's service pages. */
.erp-hero { background: var(--erp-secondary); color: var(--erp-white); padding-block: 48px 52px; text-align: center; }
.erp-hero .erp-wrap { display: grid; gap: 18px; justify-items: center; }
.erp-crumbs { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--erp-white); }
.erp .erp-crumbs a { color: var(--erp-white); text-decoration: underline; text-underline-offset: 3px; }
.erp .erp-crumbs a:hover { text-decoration-thickness: 2px; }
.erp-kicker { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--erp-white); }
.erp-lede { max-width: 66ch; color: var(--erp-white); }
.erp-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; margin: 6px 0 0; padding: 0; list-style: none; }
.erp-stats li { display: grid; justify-items: center; }
.erp-stats strong { font-family: var(--erp-body); font-weight: 700; font-size: 36px; line-height: 1.1; color: var(--erp-accent); font-variant-numeric: tabular-nums; }
.erp-stats span { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.erp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.erp-article .erp-actions { justify-content: flex-start; }

/* Buttons match the site: dark green, white FF Scala text, 5px corners. */
.erp .erp-btn { display: inline-block; padding: 12px 24px; border-radius: 5px; border: 0; background: var(--erp-primary); color: var(--erp-white); font-family: var(--erp-body); font-size: 18px; text-decoration: none; cursor: pointer; }
.erp .erp-btn:hover { background: var(--erp-secondary); }
.erp-hero .erp-btn:hover { background: var(--erp-accent); color: var(--erp-primary); }

/* Map */
.erp-mapsec { background: var(--erp-tint); padding-block: 32px 36px; }
.erp-mapsec .erp-wrap { display: grid; gap: 14px; }
.erp-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; }
.erp-filters label { display: grid; gap: 4px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--erp-primary); }
.erp-filters select { min-width: 200px; max-width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid var(--erp-primary); border-radius: 5px; background: var(--erp-white); color: var(--erp-text); font-family: var(--erp-body); font-size: 18px; }
.erp .erp-check { display: flex; align-items: center; gap: 8px; min-height: 46px; font-size: 17px; font-weight: 400; text-transform: none; letter-spacing: 0; cursor: pointer; }
.erp-check input { width: 22px; height: 22px; accent-color: var(--erp-primary); }
.erp-count { margin-left: auto; font-size: 18px; font-weight: 700; color: var(--erp-primary); }
#erp-map { height: 520px; border: 3px solid var(--erp-primary); border-radius: 5px; background: var(--erp-white); z-index: 0; }
.erp-single #erp-map { height: 340px; }
.erp-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; font-size: 16px; color: var(--erp-primary); }
.erp-legend li { display: flex; align-items: center; gap: 8px; }
.erp-dot { width: 17px; height: 17px; border-radius: 50%; border: 4px solid var(--erp-primary); background: var(--erp-white); box-shadow: 0 0 0 1px var(--erp-primary); }
.erp-mapnote { font-size: 16px; color: var(--erp-primary); }
.erp .leaflet-popup-content { font-family: var(--erp-body); font-size: 17px; line-height: 1.35; margin: 12px 14px; color: var(--erp-text); }
.erp .leaflet-popup-content strong { display: block; color: var(--erp-primary); font-size: 18px; }
.erp .leaflet-popup-content img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 5px; margin-bottom: 8px; }
.erp .leaflet-popup-content a { font-weight: 700; color: var(--erp-secondary); }
.erp .erp-unlock { position: absolute; z-index: 800; left: 50%; bottom: 34px; transform: translateX(-50%); min-height: 44px; padding: 10px 18px; border: 0; border-radius: 5px; background: var(--erp-primary); color: var(--erp-white); font-family: var(--erp-body); font-size: 17px; cursor: pointer; }

/* Bear pins: the ring colour shows the service. Nearby bears merge into one with a count. */
.erp .erp-bear { width: 0; height: 0; }
.erp .erp-bear span { position: absolute; left: 0; top: 0; width: var(--erp-pin, 28px); height: var(--erp-pin, 28px); transform: translate(-50%, -50%); border: 3px solid var(--erp-primary); border-radius: 50%; background: var(--erp-white) center / cover no-repeat; box-shadow: 0 0 0 1px var(--erp-primary), 0 1px 4px rgba(0, 0, 0, .45); cursor: pointer; }
.erp .erp-bear:hover { z-index: 2000 !important; }
.erp .erp-bear:hover span { transform: translate(-50%, -50%) scale(1.2); }
.erp .erp-bear--current span { width: 56px; height: 56px; border-width: 4px; }
.erp .erp-bear--group span { border-color: var(--erp-primary); border-width: 4px; }
.erp .erp-bear--group b { position: absolute; right: -8px; top: -8px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; border: 2px solid var(--erp-white); background: var(--erp-primary); color: var(--erp-white); font: 700 14px/22px var(--erp-body); text-align: center; font-variant-numeric: tabular-nums; }

/* City introduction and the "recent projects" block on service pages */
.erp-about { padding-block: 44px 0; }
.erp-about .erp-wrap { display: grid; gap: 14px; }
.erp-about p { max-width: 72ch; }
.erp-about h3 { margin-top: 18px; }
.erp-about .erp-links { margin-top: 4px; }
.erp-cityquote { margin: 0; max-width: 72ch; padding: 18px 22px; background: var(--erp-tint); border-left: 5px solid var(--erp-secondary); display: grid; gap: 10px; }
.erp-cityquote blockquote { margin: 0; padding: 0; border: 0; font-style: normal; }
.erp-cityquote figcaption { font-size: 16px; font-weight: 700; color: var(--erp-primary); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.erp .erp-cityquote figcaption a { font-weight: 400; color: var(--erp-secondary); text-decoration: underline; }
.erp-recent { padding-block: 48px; }
.erp-recent .erp-wrap { display: grid; gap: 24px; }

/* Project cards */
.erp-listsec { padding-block: 52px; }
.erp-listsec .erp-wrap { display: grid; gap: 26px; }
.erp-sechead { display: grid; gap: 10px; max-width: 70ch; }
.erp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.erp-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--erp-grey); border-radius: 5px; overflow: hidden; background: var(--erp-white); min-width: 0; }
.erp-card[hidden] { display: none; }
.erp-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.erp-card-body { display: grid; gap: 10px; align-content: start; padding: 18px; }
.erp .erp-card h3, .erp .erp-card h3 a { color: var(--erp-secondary); text-decoration: none; }
.erp .erp-card h3 a:hover { color: var(--erp-primary); text-decoration: underline; }
.erp-meta { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--erp-primary); }
.erp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.erp-chips li { padding: 3px 10px; border-radius: 5px; background: var(--erp-accent); color: var(--erp-primary); font-size: 16px; }
.erp-card p { font-size: 18px; }
.erp-more { justify-self: center; }

/* Shingles and colors */
.erp-shingles { padding-block: 0 52px; }
.erp-shingles .erp-wrap { display: grid; gap: 26px; }
.erp-maker { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--erp-grey); }
.erp-line { display: grid; gap: 8px; }
.erp-line-name { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--erp-primary); }
.erp-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.erp .erp-swatch { min-height: 40px; padding: 6px 14px; border: 1px solid var(--erp-grey); border-radius: 5px; background: var(--erp-white); color: var(--erp-text); font-family: var(--erp-body); font-size: 17px; cursor: pointer; }
.erp .erp-swatch:hover { border-color: var(--erp-primary); }
.erp .erp-swatch--has { background: var(--erp-accent); border-color: var(--erp-accent); color: var(--erp-primary); font-weight: 700; }
.erp-swatch span { display: inline-block; min-width: 24px; margin-left: 4px; padding: 0 6px; border-radius: 12px; background: var(--erp-primary); color: var(--erp-white); font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; }
.erp-empty { padding: 12px 16px; border-radius: 5px; background: var(--erp-accent); color: var(--erp-primary); font-weight: 700; }

/* Customer review on a project */
/* Customer review: a card in the style of the Google reviews widget used on the home page. */
.erp-reviewsec { padding-block: 0 56px; }
.erp-reviewsec h2 { margin: 0 0 20px; }
.erp-review { margin: 0; max-width: 760px; padding: 24px 26px; background: #f8f8f8; border: 1px solid #ececec; border-radius: 12px; display: grid; gap: 14px; font-family: Poppins, "Helvetica Neue", Helvetica, Arial, sans-serif; color: #111; }
.erp-review-head { display: flex; align-items: center; gap: 14px; }
.erp-review-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--erp-secondary); color: #fff; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.erp-review-who { display: grid; gap: 2px; flex: 1; min-width: 0; }
.erp-review-name { font-size: 17px; font-weight: 600; }
.erp-review-date { font-size: 14px; color: #5f5f5f; }
.erp-review-g { flex: none; }
.erp-review .erp-stars { display: flex; align-items: center; gap: 8px; margin: 0; line-height: 1; }
.erp-review-starsvg { display: block; width: 124px; height: 24px; }
.erp-review blockquote { margin: 0; padding: 0; border: 0; font-size: 17px; line-height: 1.6; font-style: normal; color: #111; }
.erp .erp-review figcaption a { font-size: 15px; color: #1558b0; text-decoration: underline; }

/* Browse links */
.erp-browse { background: var(--erp-tint); padding-block: 48px; }
.erp-browse .erp-wrap { display: grid; gap: 32px; }
.erp-browse-group { display: grid; gap: 14px; }
.erp-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.erp .erp-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--erp-grey); color: var(--erp-primary); text-decoration: none; font-weight: 700; }
.erp .erp-links a:hover { color: var(--erp-secondary); }
.erp-links span { font-weight: 400; font-variant-numeric: tabular-nums; }

/* Questions */
.erp-faq { padding-block: 52px; }
.erp-faq .erp-wrap { display: grid; gap: 18px; max-width: 880px; }
.erp-faq details { border-bottom: 1px solid var(--erp-grey); padding-block: 10px; }
.erp-faq summary { min-height: 44px; padding-block: 8px; cursor: pointer; font-weight: 700; color: var(--erp-primary); }
.erp-faq details p { margin-top: 8px; max-width: 66ch; }

/* Call to action: the brand's light blue band. */
.erp-cta { background: var(--erp-accent); color: var(--erp-primary); padding-block: 44px; }
.erp-cta .erp-wrap { display: grid; gap: 14px; justify-items: center; text-align: center; }
.erp-cta p { max-width: 62ch; color: var(--erp-text); }
.erp .erp-cta a.erp-tel { color: var(--erp-primary); font-weight: 700; }

/* Single project */
.erp-single .erp-body { padding-block: 48px; }
.erp-single .erp-body .erp-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.erp-article { display: grid; gap: 20px; min-width: 0; }
.erp-article p { max-width: 66ch; }
.erp-photo { margin: 0; }
.erp-photo img { display: block; width: 100%; border-radius: 10px; }
.erp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.erp-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
.erp-photo figcaption { margin-top: 6px; font-size: 16px; color: var(--erp-primary); }
.erp-side { display: grid; gap: 22px; min-width: 0; }
.erp-facts { margin: 0; border: 1px solid var(--erp-grey); border-radius: 5px; overflow: hidden; }
.erp-facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 11px 16px; }
.erp-facts div:nth-child(odd) { background: var(--erp-tint); }
.erp-facts dt { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--erp-secondary); padding-top: 4px; }
.erp-facts dd { margin: 0; color: var(--erp-primary); font-weight: 700; }
.erp-related { display: grid; gap: 10px; }
.erp-related ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.erp-related a { font-weight: 700; }
.erp-related small { display: block; font-size: 16px; color: var(--erp-text); }

@media (max-width: 820px) {
  .erp-review { padding: 20px; }
  .erp-single .erp-body .erp-wrap { grid-template-columns: minmax(0, 1fr); }
  #erp-map { height: 420px; }
  .erp-count { margin-left: 0; width: 100%; }
  .erp-filters select { min-width: 0; width: 100%; }
  .erp-filters label { flex: 1 1 100%; }
  .erp-facts div { grid-template-columns: 7em 1fr; }
}
