/*
 * stylesheets.css: the one stylesheet for the whole site.
 * Parts: 1. base  2. header (logo, nav, buttons)  3. search bar  4. menu dropdown  5. page layout and cards
 *        6. installer results  7. footer  8. contact form  9. legal pages  10. category guide pages  10b. calculator pages  11. tablet and mobile
 * Class names are snake_case and say what the thing is, e.g. .header_nav, .installer_card
 */

/* ============ 1. BASE ============ */
:root {
  --color_background: #FFFFFF;
  --color_background_soft: #F7F7F7;
  --color_text: #191919;
  --color_text_muted: #777777;
  --color_border: #E5E5E5;
  --color_accent: #16A34A;
  --color_accent_dark: #12843B;
  --font_heading: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font_body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow_soft: 0 2px 12px rgba(0, 0, 0, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  font-family: var(--font_body); font-size: 15px; line-height: 1.6;
  color: var(--color_text); background: var(--color_background);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
main { flex: 1; }
:focus-visible { outline: 2px solid var(--color_accent); outline-offset: 2px; border-radius: 6px; }

.skip_to_content_link { position: absolute; left: -9999px; top: 8px; background: #fff; border: 1px solid var(--color_border); padding: 8px 12px; border-radius: 8px; z-index: 400; }
.skip_to_content_link:focus { left: 16px; }

.icon_svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }


/* ============ 2. HEADER ============ */
.site_header {
  position: relative; z-index: 100;
  background: linear-gradient(180deg, #fff 0%, #fff 30%, #F0F0F0 100%);
}
.header_top_row {
  max-width: 1440px; margin: 0 auto; padding: 0 32px; height: 80px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}

.site_logo {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  font-family: var(--font_heading); font-weight: 800; font-size: 25px; letter-spacing: -.03em;
  color: var(--color_accent);
}
.site_logo_mark { width: 36px; height: 31.5px; fill: none; stroke: var(--color_accent); stroke-linecap: round; stroke-linejoin: round; }

/* The four category items in the middle of the header */
.header_nav ul { display: flex; align-items: center; gap: 12px; }
.header_nav_item { position: relative; }
.header_nav_link {
  position: relative; display: flex; align-items: center; gap: 8px; height: 80px; padding: 0 14px;
  font-family: var(--font_heading); font-weight: 700; font-size: 14px; white-space: nowrap;
  color: #555555; transition: color .18s;
}
.header_nav_link img { width: 36px; height: 36px; flex: none; filter: saturate(.9); transition: transform .2s; }
.header_nav_link:hover { color: var(--color_text); }
.header_nav_link:hover img { transform: translateY(-2px) scale(1.04); }
.header_nav_link[aria-current="page"] { color: var(--color_text); }
.header_nav_link[aria-current="page"] img { filter: none; }
/* Underline under the current item (faint on hover) */
.header_nav_link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--color_text); opacity: 0; transform: scaleX(0); transition: transform .2s, opacity .2s;
}
.header_nav_link:hover::after { opacity: .15; transform: scaleX(1); }
.header_nav_link[aria-current="page"]::after { opacity: 1; transform: scaleX(1); background: var(--color_accent); }

/* On the first page of a visit the five nav items pop in one after another (icon bounces in, label fades up).
   The class play_nav_intro is added to <html> by a small script in main_layout_tpl.html. */
@keyframes nav_item_fade_up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nav_icon_pop {
  0%   { transform: scale(.4); }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .play_nav_intro .header_nav_item { animation: nav_item_fade_up .28s ease-out backwards; }
  .play_nav_intro .header_nav_item img { animation: nav_icon_pop .34s cubic-bezier(.34, 1.56, .64, 1) backwards; }
  .play_nav_intro .header_nav_item:nth-child(1), .play_nav_intro .header_nav_item:nth-child(1) img { animation-delay: .03s; }
  .play_nav_intro .header_nav_item:nth-child(2), .play_nav_intro .header_nav_item:nth-child(2) img { animation-delay: .10s; }
  .play_nav_intro .header_nav_item:nth-child(3), .play_nav_intro .header_nav_item:nth-child(3) img { animation-delay: .17s; }
  .play_nav_intro .header_nav_item:nth-child(4), .play_nav_intro .header_nav_item:nth-child(4) img { animation-delay: .24s; }
  .play_nav_intro .header_nav_item:nth-child(5), .play_nav_intro .header_nav_item:nth-child(5) img { animation-delay: .31s; }
}
.header_actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.round_icon_button {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: #F0F0F0; transition: background .18s;
}
.round_icon_button:hover { background: #E6E6E6; }
.search_toggle_button { display: none; }   /* shown on mobile only */


/* ============ 3. SEARCH BAR ============ */
.header_search_row { padding: 6px 32px 24px; display: flex; justify-content: center; border-bottom: 1px solid #E2E2E2; }

.search_bar {
  position: relative; display: flex; align-items: center; width: 100%; max-width: 760px; height: 68px; padding-right: 10px;
  background: #fff; border: 1px solid #DDDDDD; border-radius: 999px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .20), 0 1px 3px rgba(0, 0, 0, .12);
  transition: box-shadow .2s;
}
.search_bar:focus-within { box-shadow: 0 6px 22px rgba(0, 0, 0, .28), 0 1px 3px rgba(0, 0, 0, .14); }

/* One box inside the bar: label on top, text input below */
.search_field_group {
  position: relative; flex: 1.35; min-width: 0; height: 100%; padding: 0 28px;
  display: flex; flex-direction: column; justify-content: center; border-radius: 999px; transition: background .18s;
}
.search_field_group + .search_field_group { flex: 1; margin-left: 1px; }
.search_field_group + .search_field_group::before {   /* thin divider between the two boxes */
  content: ""; position: absolute; left: -1px; top: 17.5px; bottom: 17.5px; width: 1px; background: var(--color_border); transition: opacity .15s;
}
.search_field_group:hover { background: var(--color_background_soft); }
.search_field_group:focus-within { background: var(--color_background_soft); box-shadow: inset 0 0 0 1px var(--color_border); }
.search_field_group:hover::before,
.search_field_group:focus-within::before,
.search_field_group:hover + .search_field_group::before,
.search_field_group:focus-within + .search_field_group::before { opacity: 0; }
.search_field_group label { font-family: var(--font_heading); font-weight: 600; font-size: 12px; line-height: 1.2; color: var(--color_text); cursor: pointer; }
.search_field_group input { width: 100%; padding: 2px 0 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--color_text); text-overflow: ellipsis; }
.search_field_group input::placeholder { color: var(--color_text_muted); opacity: 1; }

.search_submit_button {
  flex: none; height: 48px; min-width: 48px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; background: var(--color_accent); color: #fff; transition: background .18s, transform .18s;
}
.search_submit_button:hover { background: var(--color_accent_dark); }
.search_submit_button:active { transform: scale(.96); }
.search_submit_button svg { stroke-width: 2; }
.search_submit_text { display: none; font-family: var(--font_heading); font-weight: 600; font-size: 15px; }   /* shown on mobile only */

/* The dropdown of suggestions under a search box */
.suggestion_list {
  position: absolute; left: 0; top: calc(100% + 10px); z-index: 160; display: none;
  min-width: 100%; width: max(100%, 320px); max-height: 340px; overflow: auto; padding: 8px;
  background: #fff; border: 1px solid var(--color_border); border-radius: 20px; box-shadow: var(--shadow_soft);
}
.suggestion_list.is_open { display: block; }
/* Slim scrollbar with no arrow buttons */
.suggestion_list::-webkit-scrollbar { width: 6px; }
.suggestion_list::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.suggestion_list::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
.suggestion_list::-webkit-scrollbar-thumb { background: #888888; border-radius: 6px; }
.suggestion_list::-webkit-scrollbar-thumb:hover { background: #6B6B6B; }
@supports not selector(::-webkit-scrollbar) { .suggestion_list { scrollbar-width: thin; scrollbar-color: #888888 transparent; } }
.suggestion_list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; cursor: pointer; }
.suggestion_list li .suggestion_icon { flex: none; width: 20px; height: 20px; }
.suggestion_list li > span { flex: none; white-space: nowrap; }   /* the name never wraps */
.suggestion_list li small { margin-left: auto; padding-left: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--color_text_muted); }   /* a long area name is cut short instead */
.suggestion_list li:hover,
.suggestion_list li[aria-selected="true"] { background: var(--color_background_soft); }
.suggestion_list mark { background: none; color: var(--color_accent); font-weight: 600; }


/* ============ 4. MENU DROPDOWN (round menu button) ============ */
.menu_wrapper { position: relative; }
.menu_dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 320; width: 240px; padding: 8px 0;
  background: #fff; border-radius: 16px; box-shadow: 0 2px 16px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s, transform .16s, visibility .16s;
}
.menu_dropdown.is_open { opacity: 1; visibility: visible; transform: none; }
.menu_dropdown_list a { display: block; padding: 12px 20px; font-size: 15px; color: var(--color_text); }
.menu_dropdown_list a:hover,
.menu_dropdown_list a:focus-visible { background: var(--color_background_soft); }


/* ============ 5. PAGE LAYOUT AND CARDS ============ */
.page_container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.page_hero { padding: 72px 0 40px; }
.page_hero_compact { padding: 24px 0; }
.page_hero h1 { margin: 0 0 12px; max-width: 16em; font-family: var(--font_heading); font-weight: 700; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.025em; line-height: 1.12; }
.page_hero p { margin: 0; max-width: 38em; font-size: 16px; color: var(--color_text_muted); }
.page_section { padding: 24px 0 64px; }
.page_section h2 { margin: 0 0 20px; font-family: var(--font_heading); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.text_link { color: var(--color_accent); }

.card_group + .card_group { margin-top: 40px; }
.card_group h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--color_text_muted); font-weight: 600; }
.card_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px;
  background: #fff; border: 1px solid var(--color_border); border-radius: 16px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: #cfcfcf; box-shadow: var(--shadow_soft); transform: translateY(-1px); }
.card_icon { width: 44px; height: 44px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 12px; color: var(--color_accent); }
.card_icon img { width: 44px; height: 44px; }
.card_title { font-family: var(--font_heading); font-weight: 600; font-size: 16px; }
.card_description { font-size: 14px; color: var(--color_text_muted); }

/* Home page: heading and four photo cards */
.home_intro_narrow { max-width: 880px; margin: 0 auto; }
.home_hero { padding-bottom: 56px; }
.home_hero h1 { max-width: none; text-align: center; }
.home_photo_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; padding-bottom: 72px; }
.home_photo_card { display: flex; flex-direction: column; height: 100%; }
.home_photo_image { display: block; width: 100%; height: auto; aspect-ratio: 555 / 328; object-fit: cover; border-radius: 22px; background: var(--color_background_soft); }
.home_photo_title { margin-top: 14px; font-family: var(--font_heading); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.home_photo_description { margin-top: 2px; font-size: 16px; color: #555; }
.home_photo_link { margin-top: 4px; font-family: var(--font_heading); font-weight: 700; font-size: 16px; color: var(--color_accent_dark); }
.home_photo_card:hover .home_photo_link, .home_photo_card:focus-visible .home_photo_link { text-decoration: underline; }
.home_photo_image { transition: transform .25s ease, box-shadow .25s ease; }
.home_photo_card:hover .home_photo_image, .home_photo_card:focus-visible .home_photo_image { transform: scale(1.04); box-shadow: 0 14px 30px rgba(0, 0, 0, .2); }

/* Home page: "See how much you can save" tools */
.home_section_heading { margin: 32px 0 52px; text-align: center; font-family: var(--font_heading); font-weight: 700; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.025em; line-height: 1.12; }
.home_tool_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 80px; }
.home_tool_card { display: flex; flex-direction: column; height: 100%; padding: 28px; background: #fff; border: 1px solid var(--color_border); border-radius: 16px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.home_tool_card:hover, .home_tool_card:focus-visible { border-color: #cfcfcf; box-shadow: var(--shadow_soft); transform: translateY(-1px); }
.home_tool_image { display: block; width: 150px; height: 150px; margin: 0 0 8px -8px; }
.home_tool_card .home_photo_title { margin-top: 0; }
.home_tool_card .home_photo_description { margin-top: 8px; }
.home_tool_card .home_photo_link { margin-top: 10px; }
.home_tool_card:hover .home_photo_link, .home_tool_card:focus-visible .home_photo_link { text-decoration: underline; }
.breadcrumbs { padding-top: 28px; font-size: 13px; color: var(--color_text_muted); }
.breadcrumbs a:hover { color: var(--color_accent); }

.empty_message { margin-bottom: 64px; padding: 48px 24px; text-align: center; color: var(--color_text_muted); border: 1px dashed var(--color_border); border-radius: 16px; }
.empty_message h2 { margin: 0 0 8px; font-family: var(--font_heading); font-size: 18px; color: var(--color_text); }
.empty_message a { color: var(--color_accent); }
.empty_message a:hover { text-decoration: underline; }


/* ============ 6. INSTALLER RESULTS ============ */
.results_header { padding: 40px 0 20px; }
.results_header h1 { margin: 0 0 8px; font-family: var(--font_heading); font-weight: 700; font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.02em; line-height: 1.15; }
.results_summary { margin: 0; font-size: 14px; color: var(--color_text_muted); }
.results_notice { margin: 16px 0 0; padding: 12px 16px; font-size: 14px; background: var(--color_background_soft); border: 1px solid var(--color_border); border-radius: 12px; }

.installer_list { display: grid; gap: 14px; padding-bottom: 24px; }
.installer_card {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 22px 24px;
  background: #fff; border: 1px solid var(--color_border); border-radius: 16px; transition: box-shadow .18s, border-color .18s;
}
.installer_card:hover { border-color: #d6d6d6; box-shadow: var(--shadow_soft); }
.installer_card h3 { margin: 0; font-family: var(--font_heading); font-weight: 600; font-size: 17px; letter-spacing: -.01em; line-height: 1.3; }
.installer_address { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; font-size: 14px; color: var(--color_text_muted); }
.installer_address svg { width: 16px; height: 16px; margin-top: 3px; }
.installer_chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.installer_chip { padding: 3px 10px; font-size: 12px; color: #444; background: var(--color_background_soft); border: 1px solid var(--color_border); border-radius: 999px; }
.installer_chip_highlight { color: #14653a; background: #eefaf3; border-color: #cfeedd; }
.installer_side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.installer_distance { font-family: var(--font_heading); font-weight: 600; font-size: 14px; }
.installer_distance small { display: block; font-weight: 400; font-size: 12px; color: var(--color_text_muted); }
.installer_contact_links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.contact_pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  font-family: var(--font_heading); font-weight: 500; font-size: 14px;
  border: 1px solid var(--color_border); border-radius: 999px; transition: border-color .18s, background .18s;
}
.contact_pill:hover { border-color: var(--color_text); background: var(--color_background_soft); }
.contact_pill svg { width: 16px; height: 16px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 8px 0 64px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 4px; font-size: 15px; font-weight: 600; color: var(--color_text); border-radius: 999px; }
.pagination a:hover { background: var(--color_background_soft); }
.pagination_current { color: #fff !important; background: var(--color_text); }
.pagination_gap { font-weight: 700; letter-spacing: 1px; }
.pagination_arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pagination_arrow.is_disabled { color: #CFCFCF; }


/* ============ 7. FOOTER ============ */
.site_footer { font-size: 13px; color: var(--color_text_muted); background: var(--color_background_soft); border-top: 1px solid var(--color_border); }
.site_footer_inner { max-width: 1440px; margin: 0 auto; padding: 22px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site_footer_inner nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site_footer_inner a:hover { color: var(--color_text); }


/* ============ 8. CONTACT FORM ============ */
/* Contact page: info panel on the left, form card on the right */
.contact_page { padding-top: 56px; padding-bottom: 72px; }
.contact_split { display: grid; grid-template-columns: 5fr 6fr; gap: 40px; align-items: start; }
.contact_info_panel { padding: 0; }
.contact_info_panel .page_hero { padding: 0; }
.contact_info_panel .page_hero h1 { font-size: clamp(28px, 3.4vw, 38px); }
.contact_reason_list { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }
.contact_reason { display: flex; gap: 14px; align-items: flex-start; }
.contact_reason svg { flex: 0 0 auto; width: 40px; height: 40px; }
.contact_reason strong { display: block; font-family: var(--font_heading); font-size: 15px; }
.contact_reason span { font-size: 14px; color: var(--color_text_muted); }
.contact_card { padding: 32px; background: var(--color_background); border: 1px solid var(--color_border); border-radius: 24px; box-shadow: var(--shadow_soft); }
.contact_form { display: flex; flex-direction: column; gap: 6px; }
.contact_form label { margin-top: 10px; font-family: var(--font_heading); font-weight: 600; font-size: 13px; }
.contact_form input, .contact_form textarea {
  width: 100%; padding: 13px 16px; font: inherit; font-size: 15px; color: var(--color_text);
  background: #fff; border: 1px solid #C9C9C9; border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
.contact_form textarea { min-height: 140px; resize: vertical; }
.contact_form input:focus, .contact_form textarea:focus { outline: 0; border-color: var(--color_accent); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.contact_submit_button {
  align-self: flex-start; height: 48px; margin-top: 18px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font_heading); font-weight: 600; font-size: 15px; color: #fff; background: var(--color_accent);
  transition: background .18s, transform .18s;
}
.contact_submit_button:hover { background: var(--color_accent_dark); }
.contact_submit_button:active { transform: scale(.97); }
.form_error_message { margin: 0 0 6px; padding: 12px 16px; font-size: 14px; color: #9B1C1C; background: #FDECEC; border: 1px solid #F5C2C2; border-radius: 12px; }
.form_success_message { max-width: 560px; margin-bottom: 24px; padding: 18px 20px; color: #14532D; background: #EAF7EE; border: 1px solid #BFE5CA; border-radius: 14px; }
.spam_trap_field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* hidden from people, bots fill it in */


/* ============ 9. LEGAL PAGES (privacy, terms) ============ */
.legal_page { max-width: 760px; padding: 56px 0 80px; }
.legal_page h1 { margin: 0 0 6px; font-family: var(--font_heading); font-weight: 700; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.02em; line-height: 1.15; }
.legal_updated_date { margin: 0 0 28px; font-size: 14px; color: var(--color_text_muted); }
.legal_page h2 { margin: 32px 0 8px; font-family: var(--font_heading); font-weight: 600; font-size: 18px; }
.legal_page p, .legal_page li { font-size: 15.5px; line-height: 1.7; color: #333; }
.legal_page p { margin: 0 0 12px; }
.legal_page ul { list-style: disc; margin: 0 0 12px; padding-left: 22px; }
.legal_page li { margin-bottom: 6px; }
.legal_page a { color: var(--color_accent); text-decoration: underline; text-underline-offset: 2px; }


/* ============ 10. CATEGORY GUIDE PAGES (/heat-pumps/ etc) ============ */
.visually_hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pagination_spacer { height: 40px; }
.landing_page { display: flex; flex-direction: column; gap: 64px; padding-top: 48px; padding-bottom: 80px; }
.landing_section h2 { margin: 0 0 8px; font-family: var(--font_heading); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; line-height: 1.2; }
/* A heading with no intro line under it still gets space before its content. */
.landing_section h2 + .type_grid, .landing_section h2 + .faq_list { margin-top: 20px; }
.landing_section_intro { margin: 0 0 22px; max-width: 46em; font-size: 15.5px; line-height: 1.6; color: #555; }
.landing_section_head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 18px; }
.landing_section_head .landing_section_intro { margin-bottom: 0; }
.landing_page:not(.location_page) .landing_section_intro { max-width: none; }
.landing_section_head .text_link { font-family: var(--font_heading); font-weight: 600; font-size: 15px; white-space: nowrap; }
.text_link:hover { color: var(--color_accent_dark); text-decoration: underline; }
.small_print { margin: 16px 0 0; font-size: 13px; color: var(--color_text_muted); }

.green_button {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font_heading); font-weight: 600; font-size: 15px; color: #fff; background: var(--color_accent); white-space: nowrap;
  transition: background .18s, transform .18s;
}
.green_button:hover { background: var(--color_accent_dark); }
.green_button:active { transform: scale(.97); }
.soft_panel { padding: 36px; background: var(--color_background_soft); border: 1px solid var(--color_border); border-radius: 24px; }

/* Intro */
.landing_hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.landing_hero h1 { margin: 0 0 14px; font-family: var(--font_heading); font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.03em; line-height: 1.08; }
.landing_lead { margin: 0 0 22px; max-width: 36em; font-size: 17px; line-height: 1.6; color: #444; }
.landing_jump_links { display: flex; flex-wrap: wrap; gap: 8px; }
.landing_jump_links a { padding: 8px 14px; font-size: 13px; font-weight: 600; color: #555; background: #fff; border: 1px solid var(--color_border); border-radius: 999px; transition: border-color .18s, color .18s; }
.landing_jump_links a:hover { color: var(--color_accent); border-color: var(--color_accent); }
.landing_stat_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.landing_stat { padding: 20px; background: var(--color_background_soft); border-radius: 18px; }
.landing_stat_value { font-family: var(--font_heading); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.landing_stat_value.is_green { color: var(--color_accent); }
.landing_stat_label { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--color_text_muted); }
.landing_hero_stacked { grid-template-columns: 1fr; gap: 24px; }
.landing_hero_stacked h1 { margin: 0; }
.landing_hero_stacked .landing_stat_grid { grid-template-columns: repeat(4, 1fr); }

/* Featured installers and installers by area */
.location_finder { display: flex; align-items: center; gap: 10px; max-width: 620px; margin-bottom: 22px; padding: 6px 6px 6px 22px; background: #fff; border: 1px solid var(--color_border); border-radius: 999px; box-shadow: var(--shadow_soft); }
.location_finder label { font-size: 13px; color: var(--color_text_muted); white-space: nowrap; }
.location_finder input { flex: 1; min-width: 0; height: 44px; font: inherit; font-weight: 600; font-size: 15px; color: var(--color_text); background: transparent; border: 0; outline: 0; }
.location_finder_field { position: relative; flex: 1; min-width: 0; }
.location_finder_field input { width: 100%; }
.location_finder:focus-within { border-color: var(--color_accent); }
.featured_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.featured_card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--color_border); border-radius: 16px; transition: box-shadow .18s, border-color .18s; }
.featured_card:hover { border-color: #d6d6d6; box-shadow: var(--shadow_soft); }
.featured_card h3 { margin: 0; font-family: var(--font_heading); font-weight: 700; font-size: 17px; letter-spacing: -.01em; line-height: 1.3; }
.featured_card_place { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--color_text_muted); }
.featured_card_place svg { width: 16px; height: 16px; }
.featured_card .installer_chips { margin-top: 4px; }
.featured_card_actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.featured_card_actions .contact_pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured_note { margin: 14px 0 0; font-size: 13px; color: var(--color_text_muted); }
.area_links { margin-top: 36px; }
.area_links h3 { margin: 0 0 10px; font-family: var(--font_heading); font-weight: 700; font-size: 17px; }
.area_link_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; }
.area_link_grid a { display: flex; justify-content: space-between; gap: 8px; padding: 11px 0; font-size: 14.5px; border-bottom: 1px solid var(--color_border); transition: color .18s; }
.area_link_grid a span { color: var(--color_text_muted); }
.area_link_grid a:hover { color: var(--color_accent); }

/* Grant / savings panel */
.grant_panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; }
.grant_amount { font-family: var(--font_heading); font-weight: 800; font-size: 56px; letter-spacing: -.03em; line-height: 1; color: var(--color_accent); }
.grant_amount_label { margin: 6px 0 18px; font-size: 14px; color: var(--color_text_muted); }
.check_list { display: grid; gap: 12px; }
.check_list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.check_list li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--color_accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Types, trust cards and the comparison table */
.type_grid, .trust_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type_card, .trust_card { padding: 24px; background: #fff; border: 1px solid var(--color_border); border-radius: 16px; }
.type_card h3, .trust_card h3 { margin: 14px 0 6px; font-family: var(--font_heading); font-weight: 700; font-size: 19px; }
.type_card p, .trust_card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #555; }
.type_icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--color_accent); background: #eefaf3; border-radius: 14px; }
.type_icon svg { width: 24px; height: 24px; }
.type_image { display: block; width: 68px; height: 68px; object-fit: contain; margin: 4px 0 14px; }
.type_facts { margin-top: 16px; border-top: 1px solid var(--color_border); }
.type_facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid var(--color_border); }
.type_facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.type_facts span { color: var(--color_text_muted); }
.type_facts strong { font-weight: 600; text-align: right; }
.compare_table_wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--color_border); border-radius: 16px; }
.compare_table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.compare_table caption { padding: 18px 20px 0; text-align: left; font-family: var(--font_heading); font-weight: 700; font-size: 17px; }
.compare_table th, .compare_table td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color_border); }
.compare_table thead th { font-family: var(--font_heading); font-weight: 600; }
.compare_table tbody th { width: 26%; font-weight: 600; color: #555; }
.compare_table tbody tr:last-child th, .compare_table tbody tr:last-child td { border-bottom: 0; }
.cost_table_wrap { max-width: 720px; margin-top: 12px; border: 0; border-radius: 0; overflow: visible; }
.cost_table { min-width: 0; }
.cost_table tbody th { width: auto; color: var(--color_text); }
.cost_table_system { display: flex; align-items: center; gap: 26px; }
.cost_table_image { flex: none; width: 68px; height: 68px; object-fit: contain; margin: 10px 0; }
.cost_table_name { display: block; font-family: var(--font_heading); font-weight: 700; font-size: 17px; }
.cost_table_detail { display: block; margin-top: 2px; font-weight: 400; font-size: 13.5px; color: var(--color_text_muted); }
.cost_table th:last-child, .cost_table td:last-child { text-align: right; white-space: nowrap; }
.cost_table td { font-weight: 600; }
.cost_finder { max-width: 720px; margin: 20px 0 0; }.cost_table th, .cost_table td { padding-left: 0; padding-right: 0; vertical-align: middle; }

/* Common questions */
.faq_list { display: grid; gap: 10px; max-width: 880px; }
.faq_list details { background: #fff; border: 1px solid var(--color_border); border-radius: 14px; }
.faq_list summary { position: relative; padding: 18px 52px 18px 20px; font-family: var(--font_heading); font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
.faq_list summary::-webkit-details-marker { display: none; }
.faq_list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--color_accent); }
.faq_list details[open] summary::after { content: "–"; }
.faq_list summary:focus-visible { outline: 2px solid var(--color_accent); outline-offset: 2px; border-radius: 14px; }
.faq_list details p { margin: 0; padding: 0 20px 18px; font-size: 15px; line-height: 1.65; color: #444; }
.landing_updated_note { margin: 0; padding-top: 20px; font-size: 13px; color: var(--color_text_muted); border-top: 1px solid var(--color_border); }

/* Location pages (/installers/<category>/<location>) */
.location_page { padding-top: 20px; }
.location_context { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; color: var(--color_text_muted); }
.location_context svg { width: 16px; height: 16px; }
.about_text p { max-width: 46em; margin: 0 0 14px; font-size: 15.5px; line-height: 1.65; color: #444; }
.price_grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.price_card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px; background: #fff; border: 1px solid var(--color_border); border-radius: 16px; }
.price_card.is_most_popular { border-color: var(--color_accent); box-shadow: var(--shadow_soft); }
.price_badge { padding: 3px 10px; font-size: 12px; font-weight: 600; color: #14653a; background: #eefaf3; border: 1px solid #cfeedd; border-radius: 999px; }
.price_card h3 { margin: 0; font-family: var(--font_heading); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.price_range { font-family: var(--font_heading); font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.price_size, .price_ideal { margin: 0; font-size: 14px; color: var(--color_text_muted); }
.price_note { max-width: 52em; margin: 18px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--color_text_muted); }

/* ============ 10b. CALCULATOR PAGES (/solar-panels/calculator/ and the other three) ============ */
.calculator_page { padding-bottom: 80px; }
.calculator_hero { padding: 40px 0 36px; }
.calculator_hero h1 { margin: 0 0 12px; font-family: var(--font_heading); font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.03em; line-height: 1.08; }
.calculator_hero p { margin: 0; font-size: 17px; line-height: 1.6; color: #555; }
.calculator_layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.calculator_form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; padding: 28px; background: #fff; border: 1px solid var(--color_border); border-radius: 20px; }
.calculator_field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.calculator_field_wide { grid-column: 1 / -1; }
.calculator_field label { font-family: var(--font_heading); font-weight: 600; font-size: 14px; }
.calculator_input_wrap { position: relative; display: flex; align-items: center; }
.calculator_input_wrap input { padding-right: 92px; }
.calculator_unit { position: absolute; right: 14px; font-size: 13px; color: var(--color_text_muted); pointer-events: none; }
.calculator_input_wrap input:focus, .calculator_input_wrap input:focus-visible { outline: 0; box-shadow: none; border-color: var(--color_accent); }   /* one green border, no second ring */
.calculator_input_wrap input[type="number"] { -moz-appearance: textfield; appearance: textfield; }   /* no up/down arrows: they sat on top of the unit label */
.calculator_input_wrap input[type="number"]::-webkit-inner-spin-button, .calculator_input_wrap input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.solar_step .calculator_input_wrap { margin: 28px 0; }   /* clear space above and below the kWh box */
.calculator_field input[type="number"], .calculator_field select { width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--color_text); background: #fff; border: 1px solid #d6d6d6; border-radius: 12px; }
.calculator_field input[type="number"]:focus-visible, .calculator_field select:focus-visible { outline: 2px solid var(--color_accent); outline-offset: 1px; border-color: var(--color_accent); }
.calculator_hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--color_text_muted); }
.calculator_field label.calculator_checkbox { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font_body); font-weight: 500; font-size: 15px; line-height: 1.45; }
.calculator_checkbox input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--color_accent); }
.calculator_results_panel { position: sticky; top: 24px; padding: 28px; background: var(--color_background_soft); border: 1px solid var(--color_border); border-radius: 24px; }
.calculator_results_label { margin: 0; font-family: var(--font_heading); font-weight: 600; font-size: 14px; color: #555; }
.calculator_results_headline { margin: 4px 0 6px; font-family: var(--font_heading); font-weight: 800; font-size: clamp(38px, 5vw, 54px); letter-spacing: -.03em; line-height: 1.05; color: var(--color_accent_dark); }
.calculator_results_note { margin: 0; min-height: 1.5em; font-size: 14px; line-height: 1.5; color: #555; }
.calculator_results_list { margin: 18px 0 0; padding: 0; }
.calculator_results_list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--color_border); }
.calculator_results_list dt { font-size: 14.5px; color: #555; }
.calculator_results_list dd { margin: 0; font-family: var(--font_heading); font-weight: 700; font-size: 15px; text-align: right; }
.calculator_assumptions { margin-top: 56px; max-width: 52em; }
.calculator_assumptions h2 { margin: 0 0 14px; font-family: var(--font_heading); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; }
.calculator_assumptions li { position: relative; margin: 0 0 10px; padding-left: 20px; font-size: 15px; line-height: 1.6; color: #555; }
.calculator_assumptions li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 6px; height: 6px; background: var(--color_accent); border-radius: 50%; }
.calculator_cta { display: flex; flex-direction: column; gap: 6px; margin-top: 56px; }
.calculator_cta h2 { margin: 0; font-family: var(--font_heading); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; }
.calculator_cta p { margin: 0; color: #555; }
.calculator_cta_links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 12px !important; }
.calculator_cta .green_button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.calculator_cta .text_link { font-family: var(--font_heading); font-weight: 600; }

/* ============ 10c. SOLAR CALCULATOR (step by step, /solar-panels/calculator/) ============ */
.solar_calculator [hidden] { display: none !important; }
.solar_calculator { padding: 8px 0 0; }
.solar_calculator_layout { display: block; max-width: 640px; margin: 0 auto; }
/* While the questions are showing, the page title lines up with the narrow question card */
.calculator_page:has(.solar_calculator_layout:not(.is_results)) .calculator_hero { max-width: 640px; margin: 0 auto; padding-bottom: 28px; }
.calculator_page:has(.solar_calculator_layout:not(.is_results)) .calculator_hero p { font-size: 16px; }
.calculator_page:has(.solar_calculator_layout:not(.is_results)) .calculator_assumptions { max-width: 640px; margin-left: auto; margin-right: auto; }
.solar_calculator_layout.is_results { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: start; max-width: none; }
.solar_calculator_layout.is_results .solar_calculator_card { padding-left: 0; padding-right: 0; border: 0; }   /* no border around the results section, so its left edge lines up with the page title */
.solar_calculator_card, .solar_savings_card { padding: 32px; background: #fff; border: 1px solid var(--color_border); border-radius: 24px; box-shadow: 0 8px 30px rgba(25, 25, 25, .06); }
.solar_calculator_layout.is_results .solar_calculator_card { box-shadow: none; }
.solar_savings_card { position: sticky; top: 24px; }

/* Progress through the questions */
.solar_progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.solar_progress_track { flex: 1; height: 6px; overflow: hidden; background: #ececec; border-radius: 999px; }
.solar_progress_fill { display: block; height: 100%; background: var(--color_accent); border-radius: 999px; transition: width .3s ease; }
/* On load the green bar fills up from empty to the current step */
@keyframes solar_progress_fill_up { from { width: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .solar_progress_fill { animation: solar_progress_fill_up .9s .15s cubic-bezier(.22, 1, .36, 1) backwards; }
}
/* Side by side: the savings box starts level with the stat cards on the left (card padding + the "Your solar estimate" heading and its gap) */
.solar_calculator_layout.is_results .solar_savings_card { margin-top: calc(32px + 1.2 * clamp(22px, 2.6vw, 28px) + 18px); }
.solar_step:not([data-solar_step="results"]) h2 { margin: 0 0 6px; font-size: 22px; }
.solar_step_sub { margin: 0 0 22px; font-size: 14px; color: var(--color_text_muted); }
.solar_step h2 + .solar_option_list { margin-top: 36px; }   /* a question with no line under it gets a clear space above its options */
.solar_step h2 { margin: 0 0 18px; font-family: var(--font_heading); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; line-height: 1.2; }

/* "How we work this out": a closed box that opens on click, as wide as the card above it */
.solar_assumptions { max-width: 640px; margin: 28px auto 0; background: #fff; border: 1px solid var(--color_border); border-radius: 16px; }
.solar_calculator_layout.is_results ~ .solar_assumptions, .calculator_page:has(.is_results) .solar_assumptions { max-width: none; }
.solar_assumptions summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-family: var(--font_heading); font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.solar_assumptions summary::-webkit-details-marker { display: none; }
.solar_assumptions summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border: solid var(--color_text_muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.solar_assumptions[open] summary::after { transform: rotate(-135deg); }
.solar_assumptions ul { margin: 0; padding: 0 20px 14px; list-style: none; }
.solar_assumptions li { position: relative; margin: 0 0 10px; padding-left: 20px; font-size: 15px; line-height: 1.6; color: #555; }
.solar_assumptions li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 6px; height: 6px; background: var(--color_accent); border-radius: 50%; }

/* Choices: text options, icon tiles and people counts */
.solar_option_list { display: grid; gap: 10px; }
.solar_option { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 2px solid var(--color_border); border-radius: 18px; cursor: pointer; transition: border-color .18s, background .18s; }
.solar_option:hover, .solar_tile:hover, .solar_person:hover { border-color: var(--color_accent); }
.solar_option:has(input:checked), .solar_tile:has(input:checked), .solar_person:has(input:checked) { border-color: var(--color_accent); background: #eefaf3; }
.solar_option:has(input:focus-visible), .solar_tile:has(input:focus-visible), .solar_person:has(input:focus-visible) { outline: 2px solid var(--color_accent); outline-offset: 2px; }
.solar_option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.solar_option_icon { flex: none; display: grid; place-items: center; width: 68px; height: 68px; color: var(--color_accent); background: none; }
.solar_option_icon { font-size: 26px; line-height: 1; }
.solar_option_icon img { display: block; width: 68px; height: 68px; }
.solar_tile_emoji { font-size: 48px; line-height: 1; }
.solar_tile_emoji img { display: block; width: 76px; height: 76px; }
.solar_option_text b, .solar_tile_text b { display: block; font-family: var(--font_heading); font-weight: 700; font-size: 16px; }
.solar_option_text span, .solar_tile_text span { font-size: 14px; color: var(--color_text_muted); }
.solar_exact_field { margin-top: 18px; }
.solar_tile_list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.solar_tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px 18px; text-align: center; background: #fff; border: 2px solid var(--color_border); border-radius: 18px; cursor: pointer; transition: border-color .18s, background .18s; }
.solar_tile input, .solar_person input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.solar_tile svg { width: 72px; height: 72px; color: var(--color_text_muted); }
.solar_tile:has(input:checked) svg { color: var(--color_accent); }
.solar_people_list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.solar_person { position: relative; display: flex; flex-direction: column; align-items: center; padding: 16px 8px; background: #fff; border: 2px solid var(--color_border); border-radius: 18px; cursor: pointer; transition: border-color .18s, background .18s; }
.solar_person_number { font-family: var(--font_heading); font-weight: 800; font-size: 28px; line-height: 1.1; }
.solar_person:has(input:checked) .solar_person_number { color: var(--color_accent); }
.solar_person_label { font-size: 13px; color: var(--color_text_muted); }

/* Results: "Your answers" box, with a small button on each row that opens that answer's choices */
.solar_answers_card { margin-bottom: 20px; padding: 6px 22px; background: #fff; border: 1px solid var(--color_border); border-radius: 20px; }
.solar_answers_head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 6px; }
.solar_answers_head h3 { margin: 0; font-family: var(--font_heading); font-weight: 700; font-size: 17px; }
.solar_answers_head span { font-size: 12.5px; color: var(--color_text_muted); }
.solar_answer_row { padding: 12px 0; border-bottom: 1px solid var(--color_border); }
.solar_answer_row:last-child { border-bottom: 0; }
.solar_answer_line { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.solar_answer_label { margin: 0; font-size: 12.5px; color: var(--color_text_muted); }
.solar_answer_value { margin: 0; font-family: var(--font_heading); font-weight: 700; font-size: 15px; }
.solar_link_button { padding: 4px 2px; font: inherit; font-family: var(--font_heading); font-weight: 700; font-size: 14px; color: var(--color_accent_dark); background: none; border: 0; cursor: pointer; }
.solar_link_button:hover { text-decoration: underline; }
.solar_icon_button { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: #8a8a8a; background: none; border: 0; border-radius: 50%; cursor: pointer; transition: background .15s, color .15s; }
.solar_icon_button:hover { color: var(--color_text); background: var(--color_background_soft); }
.solar_icon_button svg { width: 18px; height: 18px; }
.solar_answer_editor { margin-top: 12px; }
.solar_choice_buttons { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: var(--color_background_soft); border-radius: 14px; }
.solar_choice_button { flex: 1 1 0; min-width: 52px; padding: 10px 8px; font-family: var(--font_heading); font-weight: 600; font-size: 14px; color: #555; background: none; border: 0; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s; }
.solar_choice_button:hover { color: var(--color_text); }
.solar_choice_button.is_chosen { color: var(--color_text); background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.solar_edit_kwh_wrap { margin-top: 10px; }
.solar_edit_kwh_wrap input { width: 100%; height: 46px; padding: 0 92px 0 14px; font: inherit; font-size: 16px; color: var(--color_text); background: #fff; border: 1px solid #d6d6d6; border-radius: 12px; }
.solar_edit_kwh_wrap input:focus-visible { outline: 2px solid var(--color_accent); outline-offset: 1px; border-color: var(--color_accent); }
.solar_edit_kwh_wrap input.is_invalid { border-color: #c0392b; }

/* Results: the two figures at the top, the panel picture and slider, the installation cost */
.solar_stat_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 24px; }
.solar_stat { padding: 18px 20px; background: var(--color_background_soft); border: 1px solid var(--color_border); border-radius: 18px; }
.solar_stat_label { margin: 0; font-family: var(--font_heading); font-weight: 600; font-size: 14px; color: #555; }
.solar_stat_value { margin: 6px 0 2px; font-family: var(--font_heading); font-weight: 800; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.solar_stat_value em { font-style: normal; color: inherit; }   /* unit (kWh) matches the number */
.solar_generation_value em { font-style: normal; color: var(--color_accent); }
.solar_stat_note { margin: 0; font-size: 13px; color: var(--color_text_muted); }
.solar_size_head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 24px 0 14px; font-size: 17px; }
.solar_size_head b { font-family: var(--font_heading); font-weight: 800; font-size: 22px; color: var(--color_accent_dark); }
.solar_notice { margin: 0 0 14px; padding: 12px 16px; font-size: 14px; background: var(--color_background_soft); border: 1px solid var(--color_border); border-radius: 12px; }
.solar_roof_box { padding: 22px; background: var(--color_background_soft); border: 1px solid var(--color_border); border-radius: 18px; }
.solar_roof_icon { display: block; width: 100%; max-width: 320px; margin: 0 auto 6px; }
.solar_roof_ground_shadow { fill: #2d3a55; opacity: 0.22; }
.solar_roof_surface { fill: url(#solar_roof_tile_fill); }
.solar_roof_tile_line { stroke: #7a1f10; stroke-width: 1; opacity: 0.22; }
.solar_roof_ridge { fill: #fff; opacity: 0.3; }
.solar_roof_eave { fill: #9e2616; }
.solar_roof_eave_light { fill: #fff; opacity: 0.3; }
.solar_roof_wall { fill: url(#solar_roof_wall_fill); }
.solar_roof_wall_edge { fill: #b5803f; opacity: 0.25; }
.solar_roof_plinth { fill: #8f6030; opacity: 0.28; }
.solar_roof_step { fill: #d8d2c8; }
.solar_roof_frame { fill: #fff; }
.solar_roof_frame_line { stroke: #fff; stroke-width: 1.6; }
.solar_roof_sill { fill: #e6d2b0; }
.solar_roof_glint { fill: #fff; opacity: 0.32; }
.solar_roof_panel_shadow { fill: #3a0f08; opacity: 0.35; }
.solar_roof_panel_frame { fill: #e4ebf3; stroke: #a9b6c6; stroke-width: 0.5; }
.solar_roof_panel { fill: url(#solar_roof_panel_fill); }
.solar_roof_panel_cells { fill: none; stroke: #8fb4ee; stroke-width: 0.4; opacity: 0.55; }
.solar_roof_count { margin: 0 0 18px; text-align: center; font-size: 14px; color: var(--color_text_muted); }
.solar_roof_count b { font-family: var(--font_heading); font-weight: 800; font-size: 20px; color: var(--color_text); }
.solar_slider_head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 18px; border-top: 1px solid #ececec; }
.solar_slider_head label { font-family: var(--font_heading); font-weight: 700; font-size: 15px; }
.solar_slider { display: block; width: 100%; height: 32px; margin: 6px 0 0; accent-color: var(--color_accent); cursor: pointer; }
.solar_slider_note { margin: 6px 0 0; font-size: 13px; color: var(--color_text_muted); }
.solar_panel_buttons { display: flex; gap: 8px; }
.solar_panel_button { width: 38px; height: 38px; font-size: 20px; line-height: 1; color: var(--color_text); background: #fff; border: 1px solid #d6d6d6; border-radius: 50%; cursor: pointer; transition: border-color .15s, background .15s; }
.solar_panel_button:hover:not(:disabled) { border-color: var(--color_accent); background: #eefaf3; }
.solar_panel_button:disabled { opacity: .4; cursor: not-allowed; }
.solar_cost_card { margin-top: 14px; padding: 22px; background: #eefaf3; border: 1px solid #cfeedb; border-radius: 18px; }
.solar_cost_value { margin: 4px 0; font-family: var(--font_heading); font-weight: 800; font-size: clamp(34px, 4.4vw, 44px); letter-spacing: -.03em; line-height: 1.05; color: var(--color_accent_dark); }

/* Savings panel (shown next to the results) */
.solar_savings_card h2 { margin: 0 0 18px; font-family: var(--font_heading); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.solar_yearly_saving_card { margin-bottom: 14px; padding: 22px; color: #fff; background: var(--color_accent); border-radius: 18px; }
.solar_yearly_saving_label { margin: 0; font-size: 14px; color: #e8f6ed; }
.solar_yearly_saving_value { margin: 6px 0; font-family: var(--font_heading); font-weight: 800; font-size: clamp(40px, 5.4vw, 56px); letter-spacing: -.03em; line-height: 1.05; }
.solar_yearly_saving_value em { font-style: normal; font-weight: 600; font-size: .35em; letter-spacing: 0; color: #e8f6ed; }
.solar_yearly_saving_note { margin: 0; font-size: 14px; color: #e8f6ed; }
.solar_generation_card { padding: 22px; color: #fff; background: var(--color_text); border-radius: 18px; }
.solar_generation_label { margin: 0; font-size: 14px; color: #d6d6d6; }
.solar_generation_value { margin: 6px 0; font-family: var(--font_heading); font-weight: 800; font-size: clamp(38px, 5vw, 52px); letter-spacing: -.03em; line-height: 1.05; }
.solar_generation_value em { color: #fff; font-size: .5em; }
.solar_generation_note { margin: 0; font-size: 14px; color: #d6d6d6; }
.solar_savings_list { margin: 16px 0 0; padding: 0; }
.solar_savings_list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color_border); }
.solar_savings_list dt { font-size: 14.5px; color: #555; }
.solar_savings_list dd { margin: 0; font-family: var(--font_heading); font-weight: 700; font-size: 15px; text-align: right; }
.solar_savings_list dd.is_good { color: var(--color_accent_dark); }
.solar_savings_fine_print { margin: 18px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--color_text_muted); }
.solar_disclaimer { margin: 14px 0 0; }
.solar_disclaimer summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; font-size: 12.5px; font-weight: 500; color: var(--color_text_muted); cursor: pointer; list-style: none; }
.solar_disclaimer summary::-webkit-details-marker { display: none; }
.solar_disclaimer summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 3px; border: solid var(--color_text_muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.solar_disclaimer[open] summary::after { transform: rotate(-135deg); }
.solar_disclaimer p { margin: 4px 0 0; font-size: 12px; line-height: 1.55; color: var(--color_text_muted); }

/* Back and next buttons */
.solar_calculator_actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.solar_back_button { height: 46px; padding: 0 20px; font-family: var(--font_heading); font-weight: 600; font-size: 15px; color: var(--color_text); background: #fff; border: 1px solid var(--color_border); border-radius: 999px; cursor: pointer; transition: border-color .18s, background .18s; }
.solar_back_button:hover { border-color: var(--color_text); background: var(--color_background_soft); }
.solar_next_button { margin-left: auto; border: 0; cursor: pointer; }
.solar_next_button:disabled { opacity: .4; cursor: not-allowed; }
.solar_calculator_layout.is_results .solar_next_button { flex: 1; margin-left: 0; }

/* Share window */
.solar_share_dialog { width: min(520px, calc(100% - 32px)); padding: 28px; color: var(--color_text); background: #fff; border: 1px solid var(--color_border); border-radius: 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); }
.solar_share_dialog::backdrop { background: rgba(0, 0, 0, .45); }
.solar_share_dialog h2 { margin: 0 0 8px; font-family: var(--font_heading); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.solar_share_dialog p { margin: 0 0 18px; font-size: 15px; color: var(--color_text_muted); }
.solar_share_row { display: flex; gap: 10px; }
.solar_share_row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; font: inherit; font-size: 14px; color: var(--color_text); background: var(--color_background_soft); border: 1px solid #d6d6d6; border-radius: 12px; }
.solar_share_row input:focus-visible { outline: 2px solid var(--color_accent); outline-offset: 1px; border-color: var(--color_accent); }
.solar_share_row .green_button { border: 0; cursor: pointer; }
.solar_share_close_button { display: block; margin: 18px 0 0 auto; padding: 8px 4px; font: inherit; font-weight: 600; font-size: 14px; color: var(--color_text_muted); background: none; border: 0; cursor: pointer; }
.solar_share_close_button:hover { color: var(--color_text); }

/* ============ 10d. HEAT PUMP, BATTERY AND EV CALCULATORS (the same look as the solar one: they use the solar_ classes; the questions are drawn in javascripts.js part 5) ============ */
.solar_step_sub[hidden] + #wizard_choices { margin-top: 30px; }   /* a question with no line under it still gets clear space above its options */
.wizard_control_icon { display: block; width: 96px; height: 96px; margin: 0 auto 6px; }
.solar_yearly_saving_card.is_negative { background: #B45309; }   /* amber, not green, when the figure is a cost rather than a saving */
.solar_cost_card .solar_stat_note { margin-top: 2px; }
/* ============ 11. TABLET AND MOBILE ============ */
@media (max-width: 1560px) {
  .header_top_row { padding: 0 20px; grid-template-columns: auto 1fr auto; }
  .header_nav { justify-self: center; }
}

@media (max-width: 1180px) {
  .header_nav ul { gap: 2px; }
  .header_nav_link { gap: 6px; padding: 0 10px; font-size: 13px; }
  .header_nav_link img { width: 30px; height: 30px; }
  .header_nav_link::after { left: 10px; right: 10px; }
}

@media (max-width: 980px) {
  .site_logo span { font-size: 19px; }
  .landing_hero, .grant_panel { grid-template-columns: 1fr; }
  .landing_hero_stacked .landing_stat_grid { grid-template-columns: 1fr 1fr; }
  .featured_grid, .type_grid, .trust_grid { grid-template-columns: 1fr 1fr; }
  .area_link_grid { grid-template-columns: repeat(3, 1fr); }
  .home_photo_grid { grid-template-columns: 1fr 1fr; }
  .calculator_layout { grid-template-columns: 1fr; }
  .calculator_results_panel { position: static; }
  .solar_calculator_layout.is_results { grid-template-columns: 1fr; }
  .solar_savings_card { position: static; }
  .solar_calculator_layout.is_results .solar_savings_card { margin-top: 0; }
}

/* Search results row: logo square, name + Google rating + town, one scrolling row of chips, buttons on the right */
.result_card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 280px; grid-template-areas: "logo main actions" "details details actions";
  column-gap: 24px; row-gap: 16px; align-items: center; padding: 24px;
  background: #fff; border: 1px solid var(--color_border); border-radius: 16px; transition: box-shadow .18s, border-color .18s;
}
.result_card:hover { border-color: #d6d6d6; box-shadow: var(--shadow_soft); }
.result_logo { grid-area: logo; align-self: start; width: 96px; height: 96px; display: grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid var(--color_border); border-radius: 14px; }
.result_logo img { width: 100%; height: 100%; padding: 8px; object-fit: contain; }
.result_logo img.is_favicon { padding: 22px; }
.result_logo_default { width: 100%; height: 100%; display: grid; place-items: center; background: var(--color_background_soft); }
.result_logo_default svg { width: 44px; height: 44px; fill: none; stroke: #BDBDBD; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.result_main { grid-area: main; align-self: start; min-width: 0; }
.result_main h3 { margin: 0; font-family: var(--font_heading); font-weight: 700; font-size: 21px; letter-spacing: -.01em; line-height: 1.25; }
.result_rating_row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.result_rating_row .result_rating, .result_rating_row .result_website { margin: 0; }
.result_website { margin: 4px 0 0; font-size: 14px; }
.result_website a { font-weight: 600; color: var(--color_accent_dark); }
.result_website a:hover { text-decoration: underline; }
.result_rating { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 14px; }
.result_star { width: 16px; height: 16px; fill: #F5B301; }
.result_rating strong { font-family: var(--font_heading); font-weight: 700; }
.result_rating_count { color: var(--color_text_muted); }
.result_based_in { margin: 6px 0 0; font-size: 14px; color: var(--color_text_muted); }
.result_based_in strong { font-weight: 600; color: #444; }
.result_details { grid-area: details; display: grid; gap: 14px; min-width: 0; }
.result_details p { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; row-gap: 1px; align-items: center; margin: 0; font-size: 13px; line-height: 1.4; }
.result_details svg { grid-row: 1 / span 2; grid-column: 1; width: 22px; height: 22px; fill: none; stroke: var(--color_text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.result_details strong { grid-column: 2; align-self: end; font-size: 14px; font-weight: 600; color: var(--color_text); }
.result_details span { grid-column: 2; align-self: start; color: var(--color_text_muted); }
.result_more_button { padding: 0; font: inherit; font-weight: 700; color: var(--color_text); background: none; border: 0; cursor: pointer; }
.result_more_button:hover { color: var(--color_accent); }
.result_actions { grid-area: actions; display: grid; gap: 10px; }
.result_button { height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; font-family: var(--font_heading); font-weight: 700; font-size: 16px; border-radius: 999px; border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.result_button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.result_phone_row { display: flex; align-items: center; gap: 8px; }
.result_phone_row .result_button { flex: 1; min-width: 0; white-space: nowrap; }
.result_whatsapp_button { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: #25D366; border: 0; padding: 0; cursor: pointer; border-radius: 999px; transition: background .15s; }
.result_whatsapp_button:hover { background: #1EBE5A; }
.result_whatsapp_button svg { width: 26px; height: 26px; fill: #fff; }
.result_button_primary { color: #fff; background: var(--color_accent); }
.result_button_primary:hover { background: var(--color_accent_dark); }
.result_button_primary.result_button_sent { color: #666; background: #E8E8E8; }
.result_button_primary.result_button_sent:hover { background: #DCDCDC; }
.result_button_outline { color: var(--color_text); background: #fff; border-color: var(--color_text); }
.result_button_outline:hover { background: var(--color_background_soft); }
/* "Send email" window on the search results */
button.result_button { cursor: pointer; }
html.has_open_modal { overflow: hidden; }
.email_modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .5); }
.email_modal[hidden] { display: none; }
.email_modal_box { position: relative; width: min(540px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.email_modal_box h2 { margin: 0 40px 20px 0; font-family: var(--font_heading); font-weight: 700; font-size: 22px; letter-spacing: -.01em; line-height: 1.25; }
.email_modal_close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; padding: 0; font-size: 26px; line-height: 1; color: var(--color_text); background: none; border: 0; border-radius: 999px; cursor: pointer; }
.email_modal_close:hover { background: var(--color_background_soft); }
.email_form_fields { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.email_form_fields label { margin-top: 8px; font-size: 14px; font-weight: 600; }
.email_form_fields input, .email_form_fields textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--color_text); background: #fff; border: 1px solid var(--color_border); border-radius: 12px; }
.email_form_fields input:focus, .email_form_fields textarea:focus { border-color: var(--color_accent); outline: 0; box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.email_form_fields textarea { min-height: 170px; resize: vertical; }
.email_form_submit { width: 100%; margin-top: 14px; cursor: pointer; }
.email_modal_done { display: grid; gap: 18px; justify-items: start; }
.email_modal_done[hidden] { display: none; }
.email_modal_done p { margin: 0; font-size: 16px; }
.email_modal_done .result_button { padding: 0 28px; }
.email_modal_status { min-height: 20px; margin: 12px 0 0; font-size: 13px; color: var(--color_text_muted); }
/* Search result rows on wide desktop (1101px and up): logo, then name/rating/miles with the buttons under them, and the three detail blocks stacked in a column on the right */
@media (min-width: 1101px) {
  .result_card { grid-template-columns: 150px minmax(0, 1fr) minmax(300px, 40%); grid-template-areas: "logo main details" "logo actions details"; column-gap: 30px; row-gap: 28px; grid-template-rows: auto 1fr; align-items: start; padding: 30px; border-radius: 30px; }
  .result_logo { width: 150px; height: 150px; border-radius: 22px; }
  .result_logo img.is_favicon { padding: 32px; }
  .result_logo_default svg { width: 56px; height: 56px; }
  .result_main h3 { font-size: 19px; }
  .result_rating_row { gap: 4px 16px; margin-top: 6px; }
  .result_based_in { margin-top: 6px; }
  .result_details { gap: 24px; max-width: none; align-self: start; padding-top: 0; }
  .result_details p { grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; }
  .result_actions { display: flex; align-items: center; gap: 10px; align-self: start; }
  .result_actions > .result_button { flex: none; padding: 0 18px; }
  .result_phone_row { flex: none; gap: 10px; }
  .result_phone_row .result_button { flex: none; padding: 0 16px; }
  .result_button { height: 34px; font-size: 13px; }
  .result_button svg { width: 16px; height: 16px; }
  .result_whatsapp_button { width: 34px; height: 34px; }
  .result_whatsapp_button svg { width: 20px; height: 20px; }
  .results_header h1 { font-size: 30px; }
}

@media (max-width: 760px) {
  .pagination { gap: 2px; }
  .pagination a, .pagination span { min-width: 34px; height: 34px; font-size: 14px; }
  /* Header: logo + buttons on top, the nav items as a swipeable row underneath */
  .header_top_row { height: auto; padding: 12px 16px 0; grid-template-columns: 1fr auto; grid-template-areas: "logo actions" "nav nav"; gap: 4px 8px; }
  .site_logo { grid-area: logo; }
  .header_actions { grid-area: actions; }
  .header_nav { grid-area: nav; justify-self: stretch; margin: 0 -16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .header_nav::-webkit-scrollbar { display: none; }
  .header_nav ul { width: max-content; min-width: 100%; justify-content: center; padding: 0 12px; gap: 8px; }
  .header_nav_link { height: 56px; padding: 0 12px; font-size: 13px; }
  .header_nav_link img { width: 28px; height: 28px; }
  .header_nav_link::after { left: 12px; right: 12px; bottom: 4px; }

  /* Search bar: always shown on phones (no search icon in the header). Closed-up it is one slim row (two boxes side by side + round search button); tapping a box adds is_expanded and the boxes stack full width */
  .header_search_row { display: flex; padding: 12px 16px 16px; }
  .search_bar { height: 60px; padding: 0 8px 0 0; }
  .search_field_group, .search_field_group + .search_field_group { flex: 1; margin: 0; padding: 0 16px; }
  .search_field_group + .search_field_group::before { top: 14px; bottom: 14px; }
  .search_submit_button { width: 44px; height: 44px; }
  .suggestion_list { width: 100%; top: calc(100% + 6px); }
  .search_bar.is_expanded { flex-direction: column; align-items: stretch; height: auto; gap: 0; padding: 6px; border-radius: 20px; }
  .search_bar.is_expanded .search_field_group, .search_bar.is_expanded .search_field_group + .search_field_group { flex: none; height: 62px; margin: 0; padding: 0 18px; border-radius: 14px; }
  .search_bar.is_expanded .search_field_group + .search_field_group::before { left: 18px; right: 18px; top: -1px; bottom: auto; width: auto; height: 1px; }
  .search_bar.is_expanded .search_submit_button { width: 100%; height: 48px; margin-top: 6px; }
  .search_bar.is_expanded .search_submit_text { display: inline; }

  .page_container { padding: 0 16px; }
  .page_hero { padding: 40px 0 24px; }
  .home_hero { padding-bottom: 28px; }
  .home_photo_grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; }
  .home_photo_title { font-size: 20px; }
  .calculator_form { grid-template-columns: 1fr; padding: 20px; }
  .calculator_results_panel { padding: 22px; }
  .calculator_hero { padding-bottom: 24px; }
  .calculator_assumptions, .calculator_cta { margin-top: 40px; }
  .solar_calculator { padding: 0; }
  .calculator_page { padding-bottom: 56px; }   /* the mobile page padding resets it to 0, so the last box touched the footer */
  .solar_calculator_card, .solar_savings_card { padding: 20px; }
  .solar_stat_grid { grid-template-columns: 1fr; }
  .solar_tile_list { grid-template-columns: 1fr; }
  .solar_tile { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 16px; text-align: left; }
  .solar_tile svg { flex: none; width: 52px; height: 52px; }
  .solar_size_head { flex-wrap: wrap; }
  .home_photo_image { width: 100%; }
  .home_tool_grid { grid-template-columns: 1fr; gap: 14px; padding-bottom: 56px; }
  .home_tool_card { padding: 22px; }
  .home_section_heading { margin: 16px 0 32px; }
  .installer_card { grid-template-columns: 1fr; padding: 18px; }
  .installer_side { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .result_card { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "logo main" "details details" "actions actions"; column-gap: 14px; row-gap: 14px; padding: 18px; }
  /* Airbnb-style card on phones: no border, big rounded corners, soft shadow */
  .installer_list { gap: 22px; padding: 6px 4px 28px; }
  .result_card { border-color: transparent; border-radius: 28px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12), 0 1px 4px rgba(0, 0, 0, .06); }
  .email_modal { align-items: flex-end; padding: 0; }
  .email_modal_box { width: 100%; max-height: 92vh; padding: 24px 18px; border-radius: 20px 20px 0 0; }
  .email_form_fields input, .email_form_fields textarea { font-size: 16px; }  .result_logo { width: 72px; height: 72px; }  .result_logo img.is_favicon { padding: 8px; }
  .result_main h3 { font-size: 20px; }
  .result_actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
  .result_actions > .result_button_primary { flex: 0 0 auto; }
  .result_actions > .result_button_primary:only-child { flex: 1; }
  .result_phone_row { flex: 1; min-width: 0; gap: 8px; }
  .result_button svg { display: none; }
  .result_whatsapp_button { width: 36px; height: 36px; }
  .result_whatsapp_button svg { width: 20px; height: 20px; }
  .result_button { height: 36px; padding: 0 12px; font-size: 12px; }
  .site_footer_inner { padding: 20px 16px; }

  .landing_page { gap: 48px; padding-top: 28px; padding-bottom: 56px; }
  .landing_lead { font-size: 16px; }
  .landing_stat { padding: 16px; }
  .landing_stat_value { font-size: 22px; }
  .featured_grid, .type_grid, .trust_grid { grid-template-columns: 1fr; }
  .area_link_grid { grid-template-columns: 1fr 1fr; }
  .soft_panel { padding: 22px; border-radius: 18px; }
  .grant_amount { font-size: 44px; }
  .location_finder { flex-wrap: wrap; padding: 14px; border-radius: 20px; }
  .location_finder label { width: 100%; }
  .location_finder_field { flex-basis: 100%; }
  .cost_table_image { width: 56px; height: 56px; }
  .cost_table_name { font-size: 16px; }
  .cost_table_system { gap: 18px; }
  .location_finder input { flex-basis: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--color_border); border-radius: 12px; }
  .location_finder .green_button { width: 100%; }
}

@media (max-width: 980px) {
  .contact_split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .contact_page { padding-top: 32px; padding-bottom: 56px; }
  .contact_card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
